Comment system for Hugo https://labertasche.tuxstash.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
6.2 KiB

<div class="modal" id="modal-project-edit">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head has-background-warning">
<p id="modal-title" class="modal-card-title has-text-black">{# filled by javascript #}</p>
<button onclick="hide_modal('modal-project-edit')" class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body has-text-black bg-deepmatte">
<form>
<div class="field">
<div class="control has-icons-left"
data-tippy-content="{{ i18n['tooltip_project_name'] }}">
<input class="input" id="edit-project-name"
name="edit-project-name" type="text">
<span class="icon is-small is-left">
<i class="mdi mdi-24px mdi-ab-testing"></i>
</span>
</div>
<label class="label help has-text-white" for="edit-project-name">
{{ i18n['project_name'] }}
</label>
</div>
<div class="field">
<div class="control has-icons-left"
data-tippy-content="{{ i18n['tooltip_hugo_url'] }}">
<input class="input" id="edit-project-blog-url" name="edit-project-blog-url" type="text">
<span class="icon is-small is-left">
<i class="mdi mdi-24px mdi-web"></i>
</span>
</div>
<label class="label help has-text-white" for="edit-project-blog-url">
{{ i18n['description_hugo_url'] }}
</label>
</div>
<div class="field">
<div class="control has-icons-left"
data-tippy-content="{{ i18n['tooltip_output_path'] }}">
<input class="input" id="edit-project-output" name="edit-project-output" type="text">
<span class="icon is-small is-left">
<i class="mdi mdi-24px mdi-folder-outline"></i>
</span>
</div>
<label class="label help has-text-white" for="edit-project-output">{{ i18n['description_output_path'] }}</label>
</div>
<div class="field">
<div class="control"
data-tippy-content="{{ i18n['tooltip_gravatar_cache'] }}">
<label class="checkbox help has-text-white" for="edit-project-gravatar-cache">
<input id="edit-project-gravatar-cache" class="checkbox" type="checkbox"
name="edit-project-gravatar-cache" checked onclick="toggle_gravatar_settings(this);">
{{ i18n['description_gravatar_cache'] }}
</label>
</div>
</div>
<div class="field">
<div class="control has-icons-left"
data-tippy-content="{{ i18n['tooltip_gravatar_dir'] }}">
<input class="input" id="edit-project-gravatar-cache-dir" name="edit-project-gravatar-cache-dir" type="text">
<span class="icon is-small is-left">
<i class="mdi mdi-24px mdi-folder-outline"></i>
</span>
</div>
<label class="label help has-text-white" for="edit-project-gravatar-cache-dir">
{{ i18n['description_gravatar_dir'] }}
</label>
</div>
<div class="field">
<div class="control has-icons-left"
data-tippy-content="{{ i18n['tooltip_gravatar_size'] }}">
<input class="input" id="edit-project-gravatar-size" name="edit-project-gravatar-size" type="text" value="256">
<span class="icon is-small is-left">
<i class="mdi mdi-24px mdi-numeric-0-box"></i>
</span>
</div>
<label class="label help has-text-white" for="edit-project-gravatar-size">
{{ i18n['description_gravatar_size'] }}
</label>
</div>
<div class="field">
<div class="control"
data-tippy-content="{{ i18n['tooltip_send_otp'] }}">
<label class="checkbox help has-text-white" for="edit-project-send-otp">
<input id="edit-project-send-otp" class="checkbox" type="checkbox"
name="edit-project-send-otp" checked>
{{ i18n['description_send_otp'] }}
</label>
</div>
</div>
<div class="field">
<div class="control"
data-tippy-content="{{ i18n['tooltip_enable_smileys'] }}">
<label class="checkbox help has-text-white" for="edit-project-addons-smileys">
<input id="edit-project-addons-smileys" class="checkbox" type="checkbox"
name="edit-project-addons-smileys" checked>
{{ i18n['description_enable_smileys'] }}
</label>
</div>
</div>
<div class="label has-text-danger" id="modal-edit-error-messages">
</div>
</form>
</section>
<footer class="modal-card-foot bg-deepmatte">
<button id="modal-save-ok" onclick="save_project_settings('modal-project-edit');" class="button is-success is-capitalized">
{{ i18n['ok'] }}
</button>
<button onclick="hide_modal('modal-project-edit')" class="button is-info is-capitalized">
{{ i18n['cancel'] }}
</button>
</footer>
</div>
</div>