Sha256: ff2e74db88c70876b8a18d04dd08cefd17a81a3e625052d27c6a52ddc328dc37

Contents?: true

Size: 1.28 KB

Versions: 7

Compression:

Stored size: 1.28 KB

Contents

<% content_for :head do %>
  <%= javascript_include_tag 'jquery.ui.autocomplete' %>
  <%= stylesheet_link_tag 'jquery.ui.autocomplete' %>
  <script type="text/javascript">
    $(function() {
      $('#user_email').autocomplete({
        source: '/users/find.json',
        minLength: 3
      });
    });
  </script>
<% end %>

<div class="page-header">
  <h1>Benutzer zu Gruppe hinzufügen</h1>
</div>

<div class="panel panel-default">
  <div class="panel-body">
    <%= form_for(@groups_user, :html => {:class => 'form-horizontal'}) do |f| %>
      <%= f.hidden_field :group_id, :value => @group.id %>
      <div class="form-group">
        <%= f.label 'Gruppe', :class => 'col-sm-2 control-label' %>
        <div class="col-sm-8">
          <p class="form-control-static"><%= @groups_user.group.name %></p>
        </div>
      </div>
      <div class="form-group">
        <%= f.label :user_email, 'Benutzer E-Mail', :class => 'col-sm-2 control-label' %>
        <div class="col-sm-8">
          <%= text_field_tag :user_email, nil, :class => 'form-control' %>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <%= f.submit "Benutzer hinzufügen", :class => 'btn btn-primary' %>
        </div>
      </div>
    <% end %>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gb_mapfish_appserver-2.0.0 app/views/groups_users/new.html.erb
gb_mapfish_appserver-1.1.1 app/views/groups_users/new.html.erb
gb_mapfish_appserver-1.1.0 app/views/groups_users/new.html.erb
gb_mapfish_appserver-1.0.6 app/views/groups_users/new.html.erb
gb_mapfish_appserver-1.0.5 app/views/groups_users/new.html.erb
gb_mapfish_appserver-1.0.4 app/views/groups_users/new.html.erb
gb_mapfish_appserver-1.0.3 app/views/groups_users/new.html.erb