CMSgov/dpc-app

View on GitHub
dpc-web/app/views/client_tokens/new.html.erb

Summary

Maintainability
Test Coverage
<% title "New Client Token" %>

<div class="ds-l-container ds-u-padding-x--0">


    <h1 class="ds-u-font-size--title ds-u-font-weight--normal ds-u-margin--0">Create a new client token</h1>



  <section class="box">
    <div class="box__content">

      <h2 class="box__heading">New token for <%= @organization.name %></h2>
      <%= form_tag organization_client_tokens_path(organization_id: params[:organization_id]), method: :post do %>

        <div class="field">
          <%= label_tag :label, "Label", class: "ds-c-label" %>
          <%= text_field_tag :label, params[:label], class: "ds-c-field", maxlength: "25"  %>
          <p class="ds-c-field__hint">Choose a descriptive name to make your token easily identifiable to you.</p>
        </div>

        <%= submit_tag "Create token", class: "ds-c-button ds-c-button--primary", data: { test: "form-submit" } %>
      <% end %>
    </div>
  </section>
</div>