-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ConcertoConfig editing to dashboard
- Loading branch information
Showing
4 changed files
with
36 additions
and
3 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 |
---|---|---|
@@ -1 +1,19 @@ | ||
This is the Dashboard. | ||
<%= form_tag "/dashboard/update" do %> | ||
<%= t(:public_concerto) %>: | ||
<%= check_box_tag "concerto_config[public_concerto]", true, :checked => !!ConcertoConfig[:public_concerto] %><br /> | ||
|
||
<%= t(:default_upload_type) %>: | ||
<%= text_field_tag "concerto_config[default_upload_type]", ConcertoConfig[:default_upload_type] %><br /> | ||
|
||
<%= t(:content_default_start_time) %>: | ||
<%= text_field_tag "concerto_config[content_default_start_time]", ConcertoConfig[:content_default_start_time] %><br /> | ||
|
||
<%= t(:content_default_end_time) %>: | ||
<%= text_field_tag "concerto_config[content_default_end_time]", ConcertoConfig[:content_default_end_time] %><br /> | ||
|
||
<%= t(:content_default_duration) %>: | ||
<%= text_field_tag "concerto_config[content_default_duration]", ConcertoConfig[:content_default_duration] %><br /> | ||
|
||
<%= submit_tag "Save" %> | ||
<% end %> |
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,7 @@ | ||
en: | ||
#index | ||
public_concerto: "Public Concerto access" | ||
default_upload_type: "Default content upload type" | ||
content_default_start_time: "Default start time for content" | ||
content_default_end_time: "Default end time for content" | ||
content_default_duration: "Default duration for content (in days)" |
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