Roll back user name selection for user id boxes (#20205)
This commit is contained in:
parent
f811f17830
commit
77dd41dfb8
4 changed files with 5 additions and 5 deletions
|
|
@ -153,13 +153,13 @@
|
|||
<div class="flex gap-4">
|
||||
<div class="crayons-field flex-1">
|
||||
<label for="author_id_<%= article.id %>" class="crayons-field__label"><%= t("views.moderations.article.author_id") %></label>
|
||||
<input id="author_id_<%= article.id %>" class="js-username_id_input crayons-textfield" size="6" name="article[user_id]"
|
||||
<input id="author_id_<%= article.id %>" class=" crayons-textfield" size="6" name="article[user_id]"
|
||||
value="<%= article.user_id %>">
|
||||
</div>
|
||||
|
||||
<div class="crayons-field flex-1">
|
||||
<label for="co_author_ids_list_<%= article.id %>" class="crayons-field__label"><%= t("views.moderations.article.co_author_ids") %></label>
|
||||
<input id="co_author_ids_list_<%= article.id %>" class="js-coauthor_username_id_input crayons-textfield" size="6" name="article[co_author_ids_list]" placeholder="Comma separated"
|
||||
<input id="co_author_ids_list_<%= article.id %>" class=" crayons-textfield" size="6" name="article[co_author_ids_list]" placeholder="Comma separated"
|
||||
value="<%= article.co_author_ids&.join(", ") %>">
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
<%= admin_config_label :staff_user_id, model: Settings::Community %>
|
||||
<%= admin_config_description Constants::Settings::Community.details[:staff_user_id][:description] %>
|
||||
<%= f.text_field :staff_user_id,
|
||||
class: "crayons-textfield js-username_id_input",
|
||||
class: "crayons-textfield ",
|
||||
value: Settings::Community.staff_user_id,
|
||||
placeholder: Constants::Settings::Community.details[:staff_user_id][:placeholder] %>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<%= admin_config_label :mascot_user_id, "Mascot user" %>
|
||||
<%= admin_config_description Constants::Settings::General.details[:mascot_user_id][:description] %>
|
||||
<%= f.text_field :mascot_user_id,
|
||||
class: "crayons-textfield js-username_id_input",
|
||||
class: "crayons-textfield ",
|
||||
value: Settings::General.mascot_user_id,
|
||||
min: 1,
|
||||
placeholder: Constants::Settings::General.details[:mascot_user_id][:placeholder] %>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<div class="crayons-field w-50 my-4">
|
||||
<%= f.label :user_id, "Add Moderator:", class: "crayons-field__label" %>
|
||||
<div>
|
||||
<%= f.text_field :user_id, class: "crayons-textfield js-username_id_input" %>
|
||||
<%= f.text_field :user_id, class: "crayons-textfield ", placeholder: "User ID (i.e. 789)" %>
|
||||
</div>
|
||||
<%= f.submit "Add Moderator", class: "crayons-btn" %>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue