mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
Integrate the splash page into the general layout
* Cleanup the CSS * Fix more views then you have fingers and toes * Introduce position(weight) for sponsor levels * Fix bootstrap/datatable integration
This commit is contained in:
parent
7acd16f923
commit
f2cdea4f1a
56 changed files with 1191 additions and 1266 deletions
|
|
@ -6,7 +6,7 @@
|
|||
Events
|
||||
- if @events
|
||||
= "(#{@events.length})"
|
||||
%table.table.table-striped.table-bordered.table-hover#events-datatable
|
||||
%table.table.table-striped.table-bordered.table-hover.datatable
|
||||
%thead
|
||||
%th
|
||||
%b ID
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
- if @conference.rooms.any?
|
||||
.row
|
||||
.col-md-12
|
||||
%table.table
|
||||
%table.table#rooms
|
||||
%thead
|
||||
%th #
|
||||
%th Name
|
||||
|
|
|
|||
2
app/views/admin/sponsorship_levels/_form.html.haml
Normal file
2
app/views/admin/sponsorship_levels/_form.html.haml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
= f.input :title
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= remove_association_link :sponsorship_level, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
8
app/views/admin/sponsorship_levels/edit.html.haml
Normal file
8
app/views/admin/sponsorship_levels/edit.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%h1 Editing Sponsorship Level
|
||||
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for @sponsorship_level, url: admin_conference_sponsorship_level_path(conference_id: @conference.short_title, id: @sponsorship_level.id) do |f|
|
||||
= render 'form', f: f
|
||||
|
||||
= link_to 'Back', admin_conference_sponsorship_levels_path
|
||||
|
|
@ -1,4 +1,29 @@
|
|||
.col-md-9
|
||||
= semantic_form_for(@conference, :url => admin_conference_sponsorship_level_path(@conference.short_title, @conference.sponsorship_levels)) do |f|
|
||||
= dynamic_association :sponsorship_levels, "Sponsorship Levels", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
%h1 Sponsorship Levels
|
||||
|
||||
- if @conference.sponsorship_levels.any?
|
||||
.row
|
||||
.col-md-12
|
||||
%table.table#sponsorship_levels
|
||||
%thead
|
||||
%th Title
|
||||
%th Position
|
||||
%th Actions
|
||||
%tbody
|
||||
- @conference.sponsorship_levels.each_with_index do |sponsorship_level, index|
|
||||
%tr
|
||||
%td
|
||||
= sponsorship_level.title
|
||||
%td
|
||||
= sponsorship_level.position
|
||||
.btn-group-vertical{role: "group"}
|
||||
= link_to(up_admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id), method: :patch, class: 'btn btn-default btn-xs') do
|
||||
%i.fa.fa-chevron-up
|
||||
= link_to(down_admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id), method: :patch, class: 'btn btn-default btn-xs') do
|
||||
%i.fa.fa-chevron-down
|
||||
%td
|
||||
= link_to 'Edit', edit_admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id),
|
||||
method: :get, class: 'btn btn-primary'
|
||||
= link_to 'Delete', admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id),
|
||||
method: :delete, class: 'btn btn-danger', data: { confirm: "Do you really want to delete the sponsorship level #{sponsorship_level.title}?" }
|
||||
|
||||
= link_to 'New Sponsorship Level', new_admin_conference_sponsorship_level_path(@conference.short_title), class: 'btn btn-success'
|
||||
|
|
|
|||
7
app/views/admin/sponsorship_levels/new.html.haml
Normal file
7
app/views/admin/sponsorship_levels/new.html.haml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
%h1 New Sponsorship Level
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for @sponsorship_level, url: admin_conference_sponsorship_levels_path(conference_id: @conference.short_title) do |f|
|
||||
= render 'form', f: f
|
||||
|
||||
= link_to 'Back', admin_conference_sponsorship_levels_path
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
= markdown(@ticket.description)
|
||||
|
||||
%h4 The following persons bought this ticket:
|
||||
%table.table#buyers-datatable
|
||||
%table.table.table-striped.table-bordered.table-hover.datatable
|
||||
%thead
|
||||
%th #
|
||||
%th Name
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
.row
|
||||
.col-md-12
|
||||
%h2
|
||||
Users
|
||||
- if @users
|
||||
= "(#{@users.length})"
|
||||
|
||||
= link_to 'New User', new_admin_user_path, class: 'btn btn-success pull-right'
|
||||
%table.table.table-striped.table-bordered.table-hover#users-datatable
|
||||
.page-header
|
||||
%h2
|
||||
Users
|
||||
- if @users
|
||||
= "(#{@users.length})"
|
||||
= link_to 'New User', new_admin_user_path, class: 'btn btn-success pull-right'
|
||||
.row
|
||||
.col-md-12
|
||||
%table.table.table-striped.table-bordered.table-hover.datatable
|
||||
%thead
|
||||
%th ID
|
||||
%th State
|
||||
|
|
@ -53,4 +55,4 @@
|
|||
disabled: true, class: 'btn btn-primary disabled btn-danger', role: 'button'
|
||||
- else
|
||||
= link_to 'Delete',admin_user_path(user), method: :delete,
|
||||
data: { confirm: 'Are you sure ?' }, class: 'btn btn-primary btn-danger'
|
||||
data: { confirm: 'Are you sure ?' }, class: 'btn btn-primary btn-danger'
|
||||
Loading…
Add table
Add a link
Reference in a new issue