app/views/app_admin/applications/new.html.haml
%h1 New Application
= form_for @application,url: app_admin_applications_path, method: 'POST' , html: {id: "new_application", class: "form-horizontal", role: "form"} do |f|
%fieldset
.form-group.row
%label.control-label.col-xs-3 Login/id
.col-sm-4
= f.text_field :id, placeholder: 'awesome-application', class: "form-control"
%span.help-block Unique identifier of the group. Can not be changed!
.form-group.row
%label.control-label.col-xs-3 Responsible user
.col-sm-4
= f.text_field :user, class: "form-control", placeholder: "Nachname, Vorname [login]"
%span.help-block
User to contact if something goes awry with this application.
Can also be used as the 'responsible' person if the api will offer
modification of data at some time in the future.
.form-group.row
%label.control-label.col-xs-3 Description
.col-sm-4
= f.text_area :description, class: "form-control"
.form-group.row
.col-sm-offset-1.col-sm-4
= button_tag "Submit", type: 'submit', class: "btn btn-success"
:coffeescript
window.AppAdmin.APIApplication.New.initialize($("form#new_application"))