2024-08-24 18:23:27 +00:00
|
|
|
{{*
|
|
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*}}
|
2023-09-20 21:39:05 +00:00
|
|
|
<div class="generic-page-wrapper">
|
|
|
|
<h1>{{$l10n.title}}</h1>
|
|
|
|
<p>{{$l10n.intro}}</p>
|
|
|
|
<h2>{{$l10n.addtitle}}</h2>
|
|
|
|
<form action="{{$baseurl}}/settings/channels" method="post">
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
{{include file="field_input.tpl" field=$label}}
|
|
|
|
{{include file="field_input.tpl" field=$description}}
|
|
|
|
{{include file="field_input.tpl" field=$access_key}}
|
2023-09-24 00:45:07 +00:00
|
|
|
{{include file="field_select.tpl" field=$circle}}
|
2023-10-14 18:39:35 +00:00
|
|
|
{{include file="field_textarea.tpl" field=$include_tags}}
|
|
|
|
{{include file="field_textarea.tpl" field=$exclude_tags}}
|
|
|
|
{{include file="field_textarea.tpl" field=$text_search}}
|
2024-01-30 10:05:05 +00:00
|
|
|
{{include file="field_input.tpl" field=$min_size}}
|
|
|
|
{{include file="field_input.tpl" field=$max_size}}
|
2023-09-20 21:39:05 +00:00
|
|
|
{{include file="field_checkbox.tpl" field=$image}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$video}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$audio}}
|
2024-01-03 19:17:14 +00:00
|
|
|
{{include file="field_select.tpl" field=$languages}}
|
2024-01-03 19:22:53 +00:00
|
|
|
<div class="submit">
|
2023-09-20 21:39:05 +00:00
|
|
|
<button type="submit" class="btn btn-primary" name="add_channel" value="{{$l10n.addsubmit}}">{{$l10n.addsubmit}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{if $entries}}
|
|
|
|
<h2>{{$l10n.currenttitle}}</h2>
|
|
|
|
<form action="{{$baseurl}}/settings/channels" method="post">
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
{{foreach $entries as $e}}
|
|
|
|
{{include file="field_input.tpl" field=$e.label}}
|
|
|
|
{{include file="field_input.tpl" field=$e.description}}
|
|
|
|
{{include file="field_input.tpl" field=$e.access_key}}
|
2023-09-24 00:45:07 +00:00
|
|
|
{{include file="field_select.tpl" field=$e.circle}}
|
2023-10-14 18:39:35 +00:00
|
|
|
{{include file="field_textarea.tpl" field=$e.include_tags}}
|
|
|
|
{{include file="field_textarea.tpl" field=$e.exclude_tags}}
|
2024-01-30 10:05:05 +00:00
|
|
|
{{include file="field_input.tpl" field=$e.min_size}}
|
|
|
|
{{include file="field_input.tpl" field=$e.max_size}}
|
2023-10-14 18:39:35 +00:00
|
|
|
{{include file="field_textarea.tpl" field=$e.text_search}}
|
2023-09-20 21:39:05 +00:00
|
|
|
{{include file="field_checkbox.tpl" field=$e.image}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$e.video}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$e.audio}}
|
2024-01-03 19:17:14 +00:00
|
|
|
{{include file="field_select.tpl" field=$e.languages}}
|
2024-01-07 18:36:47 +00:00
|
|
|
{{if $e.publish}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$e.publish}}
|
|
|
|
{{/if}}
|
2023-09-20 21:39:05 +00:00
|
|
|
{{include file="field_checkbox.tpl" field=$e.delete}}
|
|
|
|
<hr>
|
|
|
|
{{/foreach}}
|
|
|
|
<div class="submit">
|
|
|
|
<button type="submit" class="btn btn-primary" name="edit_channel" value="{{$l10n.savechanges}}">{{$l10n.savechanges}}</button>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
</div>
|