<%= javascript_pack_tag "colorPreview", defer: true %> <%= render "shared/webcomponents_loader_script" %> <%= javascript_pack_tag "clipboardCopy", defer: true %>

Organization Members

<% @org_organization_memberships.each do |org_membership| %>
"> <%= org_membership.user.name %>
<% if org_membership.user == @user && org_membership.type_of_user == "admin" %> <% elsif org_membership.user != @user && org_membership.type_of_user == "admin" %> <%= form_tag "/users/remove_org_admin", onsubmit: "return confirm('Are you sure you want to take away admin status from #{org_membership.user.name}?');" do %> <%= hidden_field_tag "user_id", org_membership.user_id %> <%= hidden_field_tag "organization_id", @organization.id %> <% end %> <% else %> <%= form_tag "/users/add_org_admin", onsubmit: "return confirm('Are you sure you want to give #{org_membership.user.name} admin status?');" do %> <%= hidden_field_tag "user_id", org_membership.user_id %> <%= hidden_field_tag "organization_id", @organization.id %> <% end %> <%= form_tag "/users/remove_from_org", onsubmit: "return confirm('Are you sure you want remove #{org_membership.user.name} from the organization?');" do %> <%= hidden_field_tag "user_id", org_membership.user_id %> <%= hidden_field_tag "organization_id", @organization.id %> <% end %> <% end %>
<% end %>

Grow the team

Invite teammates by sending them the secret and the following instructions:
  1. Sign up at ">https://<%= ApplicationConfig["APP_DOMAIN"] %>
  2. Navigate to /settings/organization">https://<%= ApplicationConfig["APP_DOMAIN"] %>/settings/organization
  3. Paste the secret code below and click Join Organization
Your secret: (You should rotate this regularly)
<%= image_tag "content-copy.svg", alt: "Copy to clipboard" %> <%= 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 %> <%= hidden_field_tag "organization[id]", @organization.id %> <% end %>

Organization Details

<%= form_for(@organization) do |f| %> <%= f.hidden_field :id %>
<%= f.label :name %> <%= f.text_field :name, maxlength: 50 %>
<%= f.label :slug, "Username" %> <%= f.text_field :slug, maxlength: 18, minlength: 2 %> Your organization's URL is: https://dev.to/<%= @organization.slug %>
<%= f.label :profile_image %>
<% if @organization.profile_image_url.present? %> <%= @organization.name %> profile image <%= f.file_field :profile_image %> <% else %> <%= f.file_field :profile_image %> <% end %>
<%= f.label :nav_image, "Image for the light theme" %>
<% if @organization.nav_image_url.present? %> <%= @organization.name %> profile image <%= f.file_field :nav_image %> <% else %> <%= f.file_field :nav_image %> <% end %>
<%= f.label :dark_nav_image, "Image for the dark theme" %>
<% if @organization.dark_nav_image_url.present? %> <%= @organization.name %> profile image <%= f.file_field :dark_nav_image %> <% else %> <%= f.file_field :dark_nav_image %> <% end %>
<%= f.label :twitter_username, "Twitter Username" %> <%= f.text_field :twitter_username %>
<%= f.label :github_username, "Github Username" %> <%= f.text_field :github_username %>
<%= f.label :url, "Site url" %> <%= f.url_field :url, maxlength: 128, placeholder: "https://yoursite.com" %>
<%= f.label :tag_line %> <%= f.text_field :tag_line, maxlength: 60, placeholder: "Limit of 60 characters" %>
<%= f.label :summary %> <%= f.text_area :summary, maxlength: 250, placeholder: "Limit of 250 characters" %>
<%= render partial: "shared/logo_design", locals: { f: f, account: @organization_membership.organization } %>
<%= f.label :location %> <%= f.text_field :location, maxlength: 64, placeholder: "Limit of 64 characters" %>
<%= f.label :email, "Support Email" %> <%= f.text_field :email, maxlength: 64, placeholder: "Limit of 64 characters" %>
<%= f.label :company_size, "Organization Size" %> <%= f.text_field :company_size, maxlength: 10, placeholder: "Enter a number" %>
<%= f.label :story, "Our Story" %> <%= f.text_area :story, maxlength: 640, placeholder: "Limit of 640 characters" %>
<%= f.label :tech_stack, "Our Stack" %> <%= f.text_area :tech_stack, maxlength: 640, placeholder: "Limit of 640 characters" %>

Call-to-action box

Customizable text that appears to the right of every post for your organization

See an example from the /devteam/the-dev-badge-is-available-on-font-awesome-2ihe" target="_blank">DEV Team.

<%= f.label :cta_body_markdown, "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." %>
<%= f.label :cta_button_text, "Link Text" %> <%= f.text_field :cta_button_text, maxlength: 20, placeholder: "Limit of 20 characters" %>
<%= f.label :cta_button_url, "Link url" %> <%= f.text_field :cta_button_url, placeholder: "https://example.com" %>
<%= f.submit "SUBMIT", class: "cta" %>
<% end %>