NodeBB/NodeBB

View on GitHub
src/views/admin/partials/widget-settings.tpl

Summary

Maintainability
Test Coverage
<div class="mb-3">
    <label class="form-label">[[admin/extend/widgets:title]]</label>
    <input type="text" class="form-control" name="title" placeholder="[[admin/extend/widgets:title.placeholder]]" />
</div>

<div class="mb-3">
    <label class="form-label">[[admin/extend/widgets:container]]</label>
    <textarea rows="4" class="form-control container-html" name="container" placeholder="[[admin/extend/widgets:container.placeholder]]"></textarea>
</div>

<!-- IMPORT admin/partials/widgets/show_hide_groups.tpl -->

<div class="row mb-3">
    <div class="col-lg-6">
        <label class="form-label">[[admin/extend/widgets:start-date]]</label>
        <input class="form-control" name="startDate" type="datetime-local" />
    </div>
    <div class="col-lg-6">
        <label class="form-label">[[admin/extend/widgets:end-date]]</label>
        <input class="form-control" name="endDate" type="datetime-local" />
    </div>
</div>

<div class="form-check form-switch mb-3">
    <input class="form-check-input" type="checkbox" name="hide-mobile" id="hide-mobile-check"/>
    <label class="form-check-label" for="hide-mobile-check">[[admin/extend/widgets:hide-on-mobile]]</label>
</div>