<% if user.org_admin && user == current_user %>
<% elsif user.org_admin && user != current_user %>
<%= form_tag "/users/remove_org_admin", onsubmit: "return confirm('Are you sure you want to take away admin status from #{user.name}?');" do %>
<%= hidden_field_tag 'user_id', user.id %>
<% end %>
<% else %>
<%= form_tag "/users/add_org_admin", onsubmit: "return confirm('Are you sure you want to give #{user.name} admin status?');" do %>
<%= hidden_field_tag 'user_id', user.id %>
<% end %>
<%= form_tag "/users/remove_from_org", onsubmit: "return confirm('Are you sure you want remove #{user.name} from the organization?');" do %>
<%= hidden_field_tag 'user_id', user.id %>
<% end %>
<% end %>
<% end %>
Grow the team
Invite teammates by sending them the secret and the following instructions:
Paste the secret code below and click Join Organization
Your secret: (You should rotate this regularly)
<%= form_tag "/organizations/generate_new_secret", onsubmit: "return confirm('Are you sure you want to generate a new secret? All outstanding secrets will be invalid.');" do %>
<% end %>
<%= f.label "Body text (Limited markdown — bold/italic/etc)" %>
<%= f.text_area :cta_body_markdown, maxlength: 256, placeholder: "**This is an example**
_italic_ and **bold** is okay. Links, and headers etc. will not show up.
256 character limit." %>