Sha256: 2766a58e4ab762052696d4bb15ebeb6c72dc4a333cdb14a93f9647b33c302204

Contents?: true

Size: 1.38 KB

Versions: 5

Compression:

Stored size: 1.38 KB

Contents

<% if can? :create, Kaui::AdminTenant %>
    <%= form_for @tenant, url: admin_tenants_path, :html => {:class => 'form-horizontal'} do |f| %>
        <fieldset>

          <div class="control-group">
            <%= f.label :name, 'Name', :class => 'control-label' %>
            <div class="controls">
              <%= f.text_field :name, :class => 'input-small', :required => true %>
            </div>
          </div>


          <div class="control-group">
            <%= f.label :api_key, 'API Key', :class => 'control-label' %>
            <div class="controls">
              <%= f.text_field :api_key, :class => 'input-small', :required => true %>
            </div>
          </div>

          <div class="control-group">
            <%= f.label :api_secret, 'API Secret', :class => 'control-label' %>
            <div class="controls">
              <%= f.password_field :api_secret, :class => 'input-small', :required => true %>
            </div>
          </div>

          <div class="control-group">
            <%= f.label :create_tenant, 'Create tenant', :class => 'control-label' %>
            <div class="controls">
              <%= check_box_tag(:create_tenant) %>
            </div>
          </div>

          <div class="form-actions">
            <%= button_tag 'Configure a new Tenant', :class => 'btn btn-primary' %>
          </div>
        </fieldset>
    <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaui-0.9.0 app/views/kaui/admin_tenants/new.html.erb
kaui-0.8.4 app/views/kaui/admin_tenants/new.html.erb
kaui-0.8.3 app/views/kaui/admin_tenants/new.html.erb
kaui-0.8.2 app/views/kaui/admin_tenants/new.html.erb
kaui-0.8.1 app/views/kaui/admin_tenants/new.html.erb