Fixed admin, orders, wiki views. Converted all erb to haml.
This commit is contained in:
parent
699fb9b233
commit
552c553b77
169 changed files with 1158 additions and 1307 deletions
12
app/views/invites/_modal_form.html.haml
Normal file
12
app/views/invites/_modal_form.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#modalForm.modal(tabindex="-1" role="dialog")
|
||||
= simple_form_for @invite, remote: true do |form|
|
||||
.modal-header
|
||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
||||
%h3 Person in die Gruppe #{@invite.group.name} einladen
|
||||
.modal-body
|
||||
= form.hidden_field :user_id
|
||||
= form.hidden_field :group_id
|
||||
= form.input :email
|
||||
.modal-footer
|
||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
||||
= form.submit class: 'btn btn-primary'
|
||||
1
app/views/invites/create.js.haml
Normal file
1
app/views/invites/create.js.haml
Normal file
|
|
@ -0,0 +1 @@
|
|||
$('#modalForm').modal('hide');
|
||||
2
app/views/invites/new.js.haml
Normal file
2
app/views/invites/new.js.haml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$('#modalContainer').html('#{escape_javascript(render('modal_form'))}');
|
||||
$('#modalForm').modal();
|
||||
Loading…
Add table
Add a link
Reference in a new issue