First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
11
app/views/admin/callforpapers/show.html.haml
Normal file
11
app/views/admin/callforpapers/show.html.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Call for Papers"
|
||||
.span9
|
||||
= semantic_form_for(@cfp, :url => admin_conference_cfp_update_path(@conference.short_title),:html => {:multipart => true}) do |f|
|
||||
= f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" }
|
||||
= f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" }
|
||||
= f.input :hard_deadline, :as => :string, :input_html => { :id => "cfp-hard-datepicker", :readonly => "readonly" }
|
||||
= f.input :description, :hint => "Welcome text for the Call for Papers"
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
26
app/views/admin/conference/_sidebar.html.haml
Normal file
26
app/views/admin/conference/_sidebar.html.haml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
.well.sidebar-nav
|
||||
%ul.nav.nav-list
|
||||
- if activated == "Conference"
|
||||
%li.active= link_to "Conference", "#"
|
||||
- else
|
||||
%li= link_to "Conference", admin_conference_path(@conference.short_title)
|
||||
- if activated == "Call for Papers"
|
||||
%li.active= link_to "Call for Papers", "#"
|
||||
- else
|
||||
%li= link_to "Call for Papers", admin_conference_cfp_info_path(@conference.short_title)
|
||||
- if activated == "Venue"
|
||||
%li.active= link_to "Venue", "#"
|
||||
- else
|
||||
%li= link_to "Venue", admin_conference_venue_info_path(@conference.short_title)
|
||||
- if activated == "Rooms"
|
||||
%li.active= link_to "Rooms", "#"
|
||||
- else
|
||||
%li= link_to "Rooms", admin_conference_rooms_list_path(@conference.short_title)
|
||||
- if activated == "Tracks"
|
||||
%li.active= link_to "Tracks", "#"
|
||||
- else
|
||||
%li= link_to "Tracks", admin_conference_tracks_list_path(@conference.short_title)
|
||||
- if activated == "Event Types"
|
||||
%li.active= link_to "Event Types", "#"
|
||||
- else
|
||||
%li= link_to "Event Types", admin_conference_eventtype_list_path(@conference.short_title)
|
||||
3
app/views/admin/conference/index.html.haml
Normal file
3
app/views/admin/conference/index.html.haml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
%ul
|
||||
- @conferences.each do |conference|
|
||||
%li= link_to conference.title, admin_conference_path(conference.short_title)
|
||||
13
app/views/admin/conference/new.html.haml
Normal file
13
app/views/admin/conference/new.html.haml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
= semantic_form_for(@conference, :url => admin_conference_index_path) do |f|
|
||||
= f.inputs "Basic Information" do
|
||||
= f.input :title, :hint => "The name of your conference as it shall appear throughout the site. Example: 'OpenSUSE Conference 2013'"
|
||||
= f.input :short_title, :hint => "A short and unique handle for your conference, using only lower-case letters, numbers and underscores. This will be used to identify your conference in URLs etc. Example: 'froscon2011'"
|
||||
= f.input :social_tag, :hint => "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'"
|
||||
= f.input :contact_email, :hint => "Contact email address for your conference. Will be used as reply-to address in emails sent out by the system."
|
||||
= f.inputs "Scheduling" do
|
||||
= f.input :timezone, :as => :time_zone, :hint => "Please select in what time zone your conference will take place. This is needed to correctly display times for your events."
|
||||
= f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" }
|
||||
= f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" }
|
||||
= f.input :html_export_path, :hint => "The path for static HTML exports"
|
||||
= f.actions do
|
||||
= f.action :submit, :button_html => {:class => "btn primary"}
|
||||
17
app/views/admin/conference/show.html.haml
Normal file
17
app/views/admin/conference/show.html.haml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Conference"
|
||||
.span9
|
||||
= semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f|
|
||||
= f.input :title, :hint => "The full name of the conference, such as 'OpenSUSE Conference 2013'"
|
||||
= f.input :short_title, :hint => "A short title, such as 'osc2013', to be used in URLs"
|
||||
= f.input :social_tag, :hint => "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'"
|
||||
= f.input :contact_email, :hint => "Contact email address for your conference. Will be used as reply-to address in emails sent out by the system."
|
||||
= f.input :timezone, :as => :time_zone, :hint => "The conference time zone"
|
||||
= f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" }
|
||||
= f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" }
|
||||
= f.input :html_export_path, :hint => "The path for static HTML exports"
|
||||
= f.input :cfp_open, :label => false, :hint => "Allow people to submit papers?"
|
||||
= f.input :registration_open, :label => false, :hint => "Allow people to register as attendees?"
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
6
app/views/admin/events/_person_fields.html.haml
Normal file
6
app/views/admin/events/_person_fields.html.haml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.nested-fields
|
||||
= f.inputs do
|
||||
= f.input :email
|
||||
= f.input :public_name
|
||||
= remove_association_link :person, f
|
||||
|
||||
2
app/views/admin/events/edit.html.haml
Normal file
2
app/views/admin/events/edit.html.haml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
.container
|
||||
= render 'proposal/form'
|
||||
48
app/views/admin/events/index.html.haml
Normal file
48
app/views/admin/events/index.html.haml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
.row-fluid
|
||||
.span12
|
||||
%table.table.table-striped.table-bordered.table-hover
|
||||
%thead
|
||||
%th
|
||||
%b Title
|
||||
%th
|
||||
%b Submitter
|
||||
%th
|
||||
%b Type
|
||||
%th
|
||||
%b State
|
||||
- @events.each do |event|
|
||||
%tr
|
||||
%td
|
||||
=link_to event.title, admin_conference_event_path(@conference.short_title, event)
|
||||
%td
|
||||
- if !event.submitter.nil?
|
||||
=link_to event.submitter.public_name, admin_person_path(event.submitter)
|
||||
- else
|
||||
Unknown submitter
|
||||
%td
|
||||
= event.event_type.title
|
||||
%td
|
||||
- if event.state == "withdrawn"
|
||||
Withdrawn
|
||||
- else
|
||||
.dropdown
|
||||
= link_to "#", :class => "dropdown-toggle" do
|
||||
= event.state.humanize
|
||||
<b class="caret"></b>
|
||||
%ul.dropdown-menu
|
||||
- if event.transition_possible? :accept
|
||||
%li= link_to "Accept event (no email)", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :accept, :send_mail => false),
|
||||
:method => :put, :hint => "Accept this event without sending an automated email."
|
||||
- if event.transition_possible? :reject
|
||||
%li= link_to "Reject event (no email)", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :reject, :send_mail => false),
|
||||
:method => :put, :confirm => "Are you sure?",
|
||||
:hint => "Reject this event without sending an automated email."
|
||||
- if event.transition_possible? :start_review
|
||||
%li= link_to "Start review", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :start_review),
|
||||
:method => :put
|
||||
- if event.transition_possible? :confirm
|
||||
%li= link_to "Confirm event", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :confirm),
|
||||
:method => :put, :hint => "Confirm that the speaker(s) will be present and that the event will actually take place."
|
||||
- if event.transition_possible? :cancel
|
||||
%li= link_to "Cancel event", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :cancel),
|
||||
:method => :put, :hint => "Mark this event as cancelled. Usually this means that the speakers had to cancel their appearance."
|
||||
112
app/views/admin/events/show.html.haml
Normal file
112
app/views/admin/events/show.html.haml
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
.row-fluid
|
||||
.span10
|
||||
%h3
|
||||
= @event.title
|
||||
%i= @event.subtitle
|
||||
|
||||
.span2
|
||||
= link_to "Edit Submission", edit_admin_conference_event_path(@conference.short_title, @event),
|
||||
:class => "btn btn-mini btn-primary pull-right", :style => "margin-top:20px;"
|
||||
|
||||
.row-fluid
|
||||
.span12
|
||||
%table.table
|
||||
%tr
|
||||
%td
|
||||
%b State
|
||||
%td
|
||||
.dropdown
|
||||
= link_to "#", :class => "dropdown-toggle" do
|
||||
= @event.state.humanize
|
||||
<b class="caret"></b>
|
||||
%ul.dropdown-menu
|
||||
- if @event.transition_possible? :accept
|
||||
%li= link_to "Accept event (no email)", update_state_admin_conference_event_path(@conference.short_title, @event, :transition => :accept, :send_mail => false),
|
||||
:method => :put, :hint => "Accept this event without sending an automated email."
|
||||
- if @event.transition_possible? :reject
|
||||
%li= link_to "Reject event (no email)", update_state_admin_conference_event_path(@conference.short_title, @event, :transition => :reject, :send_mail => false),
|
||||
:method => :put, :confirm => "Are you sure?",
|
||||
:hint => "Reject this event without sending an automated email."
|
||||
- if @event.transition_possible? :start_review
|
||||
%li= link_to "Start review", update_state_admin_conference_event_path(@conference.short_title, @event, :transition => :start_review),
|
||||
:method => :put
|
||||
- if @event.transition_possible? :confirm
|
||||
%li= link_to "Confirm event", update_state_admin_conference_event_path(@conference.short_title, @event, :transition => :confirm),
|
||||
:method => :put, :hint => "Confirm that the speaker(s) will be present and that the event will actually take place."
|
||||
- if @event.transition_possible? :cancel
|
||||
%li= link_to "Cancel event", update_state_admin_conference_event_path(@conference.short_title, @event, :transition => :cancel),
|
||||
:method => :put, :hint => "Mark this event as cancelled. Usually this means that the speakers had to cancel their appearance."
|
||||
|
||||
%tr
|
||||
%td
|
||||
%b Submitter
|
||||
%td
|
||||
= link_to @event.submitter.public_name, admin_person_path(@conference.short_title, @event.submitter)
|
||||
(
|
||||
= link_to @event.submitter.email, "mailto: #{@event.submitter.email}"
|
||||
)
|
||||
%tr
|
||||
%td
|
||||
%b Biography
|
||||
%td
|
||||
= simple_format(@event.submitter.biography)
|
||||
%tr
|
||||
%td
|
||||
%b Submitted on
|
||||
%td= @event.created_at
|
||||
%tr
|
||||
%td
|
||||
%b Last updated on
|
||||
%td= @event.updated_at
|
||||
%tr
|
||||
%td
|
||||
%b Abstract
|
||||
%td= simple_format(@event.abstract)
|
||||
%tr
|
||||
%td
|
||||
%b Description
|
||||
%td= simple_format(@event.description)
|
||||
- if @event.event_attachments.size > 0
|
||||
%table.table
|
||||
%thead
|
||||
%th
|
||||
%b Filename
|
||||
%th
|
||||
%b Title
|
||||
%th
|
||||
%b Size
|
||||
%th
|
||||
%b Public?
|
||||
%th
|
||||
%tbody
|
||||
- @event.event_attachments.each do |a|
|
||||
%tr
|
||||
%td
|
||||
= link_to a.attachment_file_name, conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id)
|
||||
%td
|
||||
= a.title
|
||||
%td
|
||||
= number_to_human_size a.attachment_file_size
|
||||
%td
|
||||
- if a.public?
|
||||
Public
|
||||
- else
|
||||
Not Public
|
||||
%td
|
||||
= link_to "Delete", conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id),
|
||||
:method => :delete, :confirm => "Are you sure you want to delete this attachment? It's permanant!"
|
||||
|
||||
.row-fluid
|
||||
= link_to "Comments (#{@comment_count})", "#", :id => "event-comment-link"
|
||||
#comments-div
|
||||
%hr
|
||||
%ul.media
|
||||
%div
|
||||
.row-fluid
|
||||
= form_tag(comment_admin_conference_event_path(@conference.short_title, @event.id), :method => :post) do
|
||||
= text_area_tag(:comment, "")
|
||||
= submit_tag "Add Comment", :class => "btn btn-primary pull-right"
|
||||
%br
|
||||
- @comments.each do |comment|
|
||||
%div
|
||||
= raw format_comments(comment)
|
||||
7
app/views/admin/eventtype/_event_type_fields.html.erb
Normal file
7
app/views/admin/eventtype/_event_type_fields.html.erb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :length, :input_html => {:size => 3} %>
|
||||
<%= remove_association_link :event_type, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
8
app/views/admin/eventtype/event_type_list.html.haml
Normal file
8
app/views/admin/eventtype/event_type_list.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Event Types"
|
||||
.span9
|
||||
= semantic_form_for(@conference, :url => admin_conference_eventtype_update_path(@conference.short_title)) do |f|
|
||||
= dynamic_association :event_types, "Event Types", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
18
app/views/admin/people/index.html.haml
Normal file
18
app/views/admin/people/index.html.haml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
%table.table.table-striped.table-bordered.table-hover
|
||||
%thead
|
||||
%th
|
||||
%b Last Name
|
||||
%th
|
||||
%b First Name
|
||||
%th
|
||||
%b Public Name
|
||||
%th
|
||||
%b # of Conference Registrations
|
||||
%th
|
||||
- @people.each do |person|
|
||||
%tr
|
||||
%td= person.last_name
|
||||
%td= person.first_name
|
||||
%td= person.public_name
|
||||
%td= person.registrations.count
|
||||
%td= link_to "View", admin_person_path(person)
|
||||
49
app/views/admin/people/show.html.haml
Normal file
49
app/views/admin/people/show.html.haml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
%table.table
|
||||
%tr
|
||||
%td
|
||||
%b First Name
|
||||
%td
|
||||
= @person.first_name
|
||||
%tr
|
||||
%td
|
||||
%b Last Name
|
||||
%td
|
||||
= @person.last_name
|
||||
%tr
|
||||
%td
|
||||
%b Public Name
|
||||
%td
|
||||
= @person.public_name
|
||||
%tr
|
||||
%td
|
||||
%b Company
|
||||
%td
|
||||
= @person.company
|
||||
%tr
|
||||
%td
|
||||
%b Email
|
||||
%td
|
||||
= @person.email
|
||||
%tr
|
||||
%td
|
||||
%b Created At
|
||||
%td
|
||||
= @person.created_at
|
||||
%tr
|
||||
%td
|
||||
%b Updated At
|
||||
%td
|
||||
= @person.updated_at
|
||||
%tr
|
||||
%td
|
||||
%b Biography
|
||||
%td
|
||||
= @person.biography
|
||||
%tr
|
||||
%td
|
||||
%b Registered to attend
|
||||
%td
|
||||
- if @person.registrations.count == 0
|
||||
None
|
||||
- else
|
||||
= @person.registrations.map { |r| r.conference.title }.join ','
|
||||
48
app/views/admin/registrations/show.html.haml
Normal file
48
app/views/admin/registrations/show.html.haml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
.row-fluid
|
||||
.span12
|
||||
.pull-right{:style=>"margin-top:20px; margin-bottom:20px;"}
|
||||
= link_to "Export PDF", admin_conference_registrations_path(@conference.short_title, :format => :pdf), :class => "btn btn-success"
|
||||
.row-fluid
|
||||
.span12
|
||||
%table.table.table-striped.table-bordered.table-hover
|
||||
%thead
|
||||
%th
|
||||
%b Last Name
|
||||
%th
|
||||
%b First Name
|
||||
%th
|
||||
%b Public Name
|
||||
%th
|
||||
%b Email
|
||||
%th
|
||||
%b Attending Social Events
|
||||
%th
|
||||
%b Attending With Partner
|
||||
%th
|
||||
%b Arrival Date
|
||||
%th
|
||||
%b Departure Date
|
||||
%th
|
||||
%th
|
||||
- @registrations.each do |registration|
|
||||
%tr
|
||||
%td
|
||||
= registration.last_name
|
||||
%td
|
||||
= registration.first_name
|
||||
%td
|
||||
= registration.public_name
|
||||
%td
|
||||
= registration.email
|
||||
%td
|
||||
= registration.attending_social_events
|
||||
%td
|
||||
= registration.attending_social_events_with_partner
|
||||
%td
|
||||
= registration.arrival
|
||||
%td
|
||||
= registration.departure
|
||||
%td
|
||||
= link_to "Edit", "#", :class => "btn btn-primary"
|
||||
%td
|
||||
= link_to "Delete", "#", :class => "btn btn-danger", :confirm => "Really delete registration for #{registration.public_name}?"
|
||||
38
app/views/admin/registrations/show.pdf.prawn
Normal file
38
app/views/admin/registrations/show.pdf.prawn
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
prawn_document(:force_download=>true, :filename => @pdf_filename) do |pdf|
|
||||
table_array = []
|
||||
header_array = [" ",
|
||||
"Last Name",
|
||||
"First Name",
|
||||
"Public Name",
|
||||
"Email",
|
||||
"Attending Social Events",
|
||||
"Attending With Partner",
|
||||
"Arrival Date",
|
||||
"Departure Date"]
|
||||
table_array << header_array
|
||||
@registrations.each do |registration|
|
||||
row = []
|
||||
row << ""
|
||||
row << registration.last_name
|
||||
row << registration.first_name
|
||||
row << registration.public_name
|
||||
row << registration.email
|
||||
if registration.attending_social_events
|
||||
row << "X"
|
||||
else
|
||||
row << " "
|
||||
end
|
||||
|
||||
if registration.attending_social_events_with_partner.to_s
|
||||
row << "X"
|
||||
else
|
||||
row << " "
|
||||
end
|
||||
row << registration.arrival
|
||||
row << registration.departure
|
||||
table_array << row
|
||||
end
|
||||
|
||||
pdf.text "#{@conference.title} Registrations", :font_size => 25
|
||||
pdf.table table_array, :header => true, :cell_style => {:size => 5, :border_width => 1}
|
||||
end
|
||||
8
app/views/admin/rooms/_room_fields.html.erb
Normal file
8
app/views/admin/rooms/_room_fields.html.erb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :size, :input_html => {:size => 5} %>
|
||||
<%= f.input :public, :as => :boolean %>
|
||||
<%= remove_association_link :room, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
8
app/views/admin/rooms/rooms_list.html.haml
Normal file
8
app/views/admin/rooms/rooms_list.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Rooms"
|
||||
.span9
|
||||
= semantic_form_for(@conference, :url => admin_conference_rooms_update_path(@conference.short_title)) do |f|
|
||||
= dynamic_association :rooms, "Rooms", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
8
app/views/admin/tracks/_track_fields.html.erb
Normal file
8
app/views/admin/tracks/_track_fields.html.erb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :color, :input_html => {:size => 6} %>
|
||||
<%= f.input :description, :input_html => {:rows => 2 } %>
|
||||
<%= remove_association_link :track, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
8
app/views/admin/tracks/tracks_list.html.haml
Normal file
8
app/views/admin/tracks/tracks_list.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Tracks"
|
||||
.span9
|
||||
= semantic_form_for(@conference, :url => admin_conference_tracks_update_path(@conference.short_title)) do |f|
|
||||
= dynamic_association :tracks, "Tracks", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
57
app/views/admin/users/index.html.haml
Normal file
57
app/views/admin/users/index.html.haml
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span12
|
||||
%table.table.table-striped.table-bordered.table-hover
|
||||
%thead
|
||||
%th
|
||||
%b Email
|
||||
%th
|
||||
%b Last Name
|
||||
%th
|
||||
%b First Name
|
||||
%th
|
||||
%b Public Name
|
||||
%th
|
||||
%b Roles
|
||||
%th
|
||||
%th
|
||||
- @users.each do |user|
|
||||
%tr
|
||||
%td
|
||||
= user.email
|
||||
%td
|
||||
= user.last_name
|
||||
%td
|
||||
= user.first_name
|
||||
%td
|
||||
= user.public_name
|
||||
%td
|
||||
= user.roles.map { |role| role.name }.join ','
|
||||
%td
|
||||
.modal.hide.fade{:id => "user-role-selection-#{user.id}", "role" => "dialog", "aria-hidden" => "true"}
|
||||
.modal-header
|
||||
%button{"type"=>"button", :class=>"close", "data-dismiss"=>"modal", "aria-hidden"=>"true"}
|
||||
×
|
||||
%h3{:id => "role-selector-header-#{user.id}"}
|
||||
Modifying Roles
|
||||
.modal-body
|
||||
- if current_user == user
|
||||
You cannot modify your own role!
|
||||
%br
|
||||
%button{:class=> "btn btn-danger", "data-dismiss"=> "modal", "aria-hidden"=>"true"}
|
||||
Cancel
|
||||
|
||||
- else
|
||||
= "Give #{user.public_name} (#{user.email}) the following roles:"
|
||||
= semantic_form_for(user, :url => admin_user_path(user), :method => :put) do |f|
|
||||
= f.input :roles, :label => false
|
||||
%button{:class=> "btn btn-danger", "data-dismiss"=> "modal", "aria-hidden"=>"true"}
|
||||
Cancel
|
||||
= f.action :submit, :as => :button, :button_html => {:value => "Save", :class => "btn btn-primary"}
|
||||
=link_to "Modify Roles", "#", "data-toggle" => "modal", "data-target" => "#user-role-selection-#{user.id}}"
|
||||
%td
|
||||
=link_to "Details", "#", :class => "user-details-popover", "data-trigger" => "click", "data-placement" => "bottom",
|
||||
"data-html" => "true",
|
||||
"data-content" => user.popup_details,
|
||||
"data-original-title" => ""
|
||||
|
||||
11
app/views/admin/venue/venue_info.html.haml
Normal file
11
app/views/admin/venue/venue_info.html.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Venue"
|
||||
.span9
|
||||
= semantic_form_for(@venue, :url => admin_conference_venue_update_path(@conference.short_title),:html => {:multipart => true}) do |f|
|
||||
= f.input :name
|
||||
= f.input :address
|
||||
= f.input :website
|
||||
= f.input :description, :input_html => { :rows => 10, :cols => 20 }
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue