From f73fe27936433014909f1e7c7d355dbf7ef6dfa8 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 2 Jul 2014 17:12:54 +0200 Subject: [PATCH] Fix theme changing forms --- app/views/asciicasts/edit.html.slim | 2 +- app/views/users/edit.html.slim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/asciicasts/edit.html.slim b/app/views/asciicasts/edit.html.slim index 8828d64..a989bcd 100644 --- a/app/views/asciicasts/edit.html.slim +++ b/app/views/asciicasts/edit.html.slim @@ -4,7 +4,7 @@ = f.input :title = f.input :description, as: :text, input_html: { rows: 10 }, hint: 'Parsed with GitHub Flavored Markdown'.html_safe - = f.input :theme, label: 'Terminal theme', collection: themes_for_select, include_blank: default_asciicast_theme_label(decorated_current_user.theme) + = f.input :theme_name, label: 'Terminal theme', collection: themes_for_select, include_blank: default_asciicast_theme_label(decorated_current_user.theme) = f.buttons do = f.button :submit, 'Save', class: 'btn-primary' = link_to 'Cancel', asciicast_path, class: 'btn' diff --git a/app/views/users/edit.html.slim b/app/views/users/edit.html.slim index 3b8200a..440d5a1 100644 --- a/app/views/users/edit.html.slim +++ b/app/views/users/edit.html.slim @@ -5,7 +5,7 @@ = f.input :username = f.input :email, required: true = f.input :name, label: 'Real name' - = f.input :theme, label: 'Terminal theme', collection: themes_for_select, include_blank: default_user_theme_label, hint: 'Used for all recordings unless custom theme chosen for a specific recording' + = f.input :theme_name, label: 'Terminal theme', collection: themes_for_select, include_blank: default_user_theme_label, hint: 'Used for all recordings unless custom theme chosen for a specific recording' = f.buttons do = f.button :submit, 'Save', class: 'btn-primary' = link_to 'Cancel', profile_path(current_user), class: 'btn'