Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oleg Chebulaev
committed
Jul 10, 2013
1 parent
604524a
commit f21b0f7
Showing
7 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* FIXME: вытащить стили админки сюда | ||
* | ||
*/ | ||
|
||
.span-nomargin { | ||
margin-left: 0 !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
.row.nested-fields | ||
.well | ||
.control-group | ||
= f.association :lecture, collection: Lecture.in_schedule, label_method: :name, value_method: :id, as: :choosen_select, input_html: { class: 'input-block-level' } | ||
.control-group | ||
.control-label | ||
= t('.time_from_till') | ||
.controls | ||
.row-fluid | ||
.span4 | ||
= f.input_field :start_time, as: :date_time_picker, class: 'span9' | ||
.span4 | ||
= f.input_field :finish_time, as: :date_time_picker, class: 'span9' | ||
.span4 | ||
= link_to_remove_association t('.delete'), f, class: 'btn btn-danger' | ||
.span7 | ||
.well | ||
.control-group | ||
= f.association :lecture, collection: Lecture.in_schedule, label_method: :name, value_method: :id, as: :choosen_select, input_html: { class: 'span4 span-nomargin' } | ||
.control-group | ||
.control-label | ||
= t('.time_from_till') | ||
.controls | ||
= f.input_field :start_time, as: :date_time_picker, input_html: {class: 'span2'} | ||
= f.input_field :finish_time, as: :date_time_picker | ||
= link_to_remove_association t('.delete'), f, class: 'btn btn-danger pull-right' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
= simple_form_for [:admin, @lecture], html: { class: 'form-horizontal hall-form' } do |f| | ||
= f.input :name, input_html: { class: 'input-block-level' } | ||
= f.association :user, collection: User.active.asc_by_last_name.decorate, label_method: :full_name, value_method: :id, as: :choosen_select, input_html: { class: 'input-block-level' } | ||
= f.input :state_event, as: :state_event, input_html: { class: 'input-block-level' } | ||
= f.input :thesis, as: :text, input_html: { class: 'input-block-level' } | ||
= f.input :name, input_html: { class: 'span5' } | ||
.row | ||
.span5 | ||
= f.association :user, collection: User.active.asc_by_last_name.decorate, label_method: :full_name, value_method: :id, as: :choosen_select, input_html: { class: 'span5 span-nomargin' } | ||
= f.input :state_event, as: :state_event, input_html: { class: 'span5' } | ||
= f.input :thesis, as: :text, input_html: {rows: 20, class: 'span7' } | ||
.form-actions | ||
= f.button :submit, class: 'btn btn-primary' | ||
= link_to t('.cancel'), admin_lectures_path, class: 'btn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters