forked from MarseyWorld/MarseyWorld
rename show_marseys to show_emojis
parent
40d7fc4b71
commit
49605990bb
|
@ -52,7 +52,7 @@
|
|||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro line_text_section(id, form_action, form_name, section_title, contents, below_text, placeholder_text, button_text, show_marseys, minlength, maxlength, pattern, disabled) %}
|
||||
{% macro line_text_section(id, form_action, form_name, section_title, contents, below_text, placeholder_text, button_text, show_emojis, minlength, maxlength, pattern, disabled) %}
|
||||
<div class="body d-lg-flex border-bottom">
|
||||
<label class="text-black w-lg-25">{{section_title}}</label>
|
||||
<div class="w-lg-100">
|
||||
|
@ -60,7 +60,7 @@
|
|||
<input hidden name="formkey" value="{{v|formkey}}">
|
||||
<input minlength={{minlength}} maxlength={{maxlength}} pattern="{{pattern}}" autocomplete="off" id="{{id}}-body" type="text" name="{{form_name}}" class="form-control" placeholder='{{placeholder_text}}' value="{% if contents %}{{contents}}{% endif %}" {% if disabled %}disabled{% endif %}>
|
||||
<div class="d-flex mt-2">
|
||||
{% if show_marseys %}
|
||||
{% if show_emojis %}
|
||||
<div class="ml-2"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" data-nonce="{{g.nonce}}" data-onclick="loadEmojis('{{id}}-body')" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></div>
|
||||
{% endif %}
|
||||
<small class="ml-1">{{below_text}}</small>
|
||||
|
|
Loading…
Reference in New Issue