docbrown/app/views/admin/settings/forms/_api_tokens.html.erb
yheuhtozr d6c15a3fc6
I18nize Constants::Settings (#17086)
* app/lib i18n (no callers)

* tidy key names

* callers deconstantified

* delete ja.yml

* update locale keys and calls

* remove ja.yml

* Revert "remove ja.yml"

This reverts commit 6a6881e274b58424ece0411c887c862124a2ca87.

* fix conflicts

* remove ja.yml

* Update general.rb
2022-05-11 09:58:37 +01:00

29 lines
1.4 KiB
Text

<%= form_for(Settings::General.new,
url: admin_settings_general_settings_path,
html: { data: { action: "submit->config#updateConfigurationSettings" } }) do |f| %>
<details class="crayons-card">
<summary class="crayons-subtitle-2 p-6">API Tokens</summary>
<div class="p-6 pt-0">
<fieldset class="grid gap-4">
<div class="crayons-field">
<%= admin_config_label :health_check_token %>
<%= admin_config_description Constants::Settings::General.details[:health_check_token][:description] %>
<%= f.text_field :health_check_token,
class: "crayons-textfield",
value: Settings::General.health_check_token,
placeholder: Constants::Settings::General.details[:health_check_token][:placeholder] %>
</div>
<div class="crayons-field">
<%= admin_config_label :video_encoder_key %>
<%= admin_config_description Constants::Settings::General.details[:video_encoder_key][:description] %>
<%= f.text_field :video_encoder_key,
class: "crayons-textfield",
value: Settings::General.video_encoder_key,
placeholder: Constants::Settings::General.details[:video_encoder_key][:placeholder] %>
</div>
</fieldset>
<%= render "update_setting_button", f: f %>
</div>
</details>
<% end %>