2013-10-22 00:17:06 +02:00
|
|
|
<form action="<?php echo \Chibi\UrlHelper::route('user', 'settings', ['name' => $this->context->transport->user->name]) ?>" method="post" class="settings aligned">
|
|
|
|
<div class="safety">
|
2013-11-18 14:00:54 +01:00
|
|
|
<label class="left">Safety:</label>
|
2013-10-22 00:17:06 +02:00
|
|
|
<div class="input-wrapper">
|
|
|
|
<?php foreach (PostSafety::getAll() as $safety): ?>
|
|
|
|
<?php if (PrivilegesHelper::confirm(Privilege::ListPosts, PostSafety::toString($safety))): ?>
|
|
|
|
<label><input type="checkbox" name="safety[]" value="<?php echo $safety ?>"<?php if ($this->context->transport->user->hasEnabledSafety($safety)) echo ' checked="checked"' ?>/>
|
|
|
|
<?php echo TextHelper::camelCaseToHumanCase(PostSafety::toString($safety), true) ?></label>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="endless-scrolling">
|
2013-11-18 14:00:54 +01:00
|
|
|
<label class="left" for="endless-scrolling">Endless scrolling:</label>
|
2013-10-22 00:17:06 +02:00
|
|
|
<div class="input-wrapper">
|
|
|
|
<label>
|
2013-11-18 14:00:54 +01:00
|
|
|
<input type="checkbox" id="endless-scrolling" name="endless-scrolling" <?php if ($this->context->transport->user->hasEnabledEndlessScrolling()) echo ' checked="checked"' ?>/>
|
2013-10-22 00:17:06 +02:00
|
|
|
Enabled
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-11-25 12:07:50 +01:00
|
|
|
<div class="post-tag-titles">
|
|
|
|
<label class="left" for="post-tag-titles">Tags in thumbs:</label>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" id="post-tag-titles" name="post-tag-titles" <?php if ($this->context->transport->user->hasEnabledPostTagTitles()) echo ' checked="checked"' ?>/>
|
|
|
|
Enabled
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-10-22 00:17:06 +02:00
|
|
|
<input type="hidden" name="submit" value="1"/>
|
|
|
|
|
2013-11-16 18:40:26 +01:00
|
|
|
<?php $this->renderFile('message') ?>
|
2013-10-22 00:17:06 +02:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<label class="left"> </label>
|
2013-11-30 14:22:49 +01:00
|
|
|
<button class="submit" type="submit">Update settings</button>
|
2013-10-22 00:17:06 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|