mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix edit topic
This commit is contained in:
parent
25665109b2
commit
9f0ef65eef
|
@ -184,14 +184,16 @@
|
|||
id = {( $topic ) ? 'submit-edit-topic-publish' : 'submit-add-topic-publish' }
|
||||
mods = 'primary'
|
||||
classes = 'fl-r'
|
||||
text = $aLang.topic.add.button[ ( $sEvent == 'add' or ( $topic && $topic->getPublish() == 0 ) ) ? 'publish' : 'update' ]}
|
||||
text = $aLang.topic.add.button[ ( !$topic or ( $topic && $topic->getPublish() == 0 ) ) ? 'publish' : 'update' ]}
|
||||
|
||||
{* Превью *}
|
||||
{component 'button' type='button' classes='js-topic-preview-text-button' text=$aLang.common.preview_text}
|
||||
|
||||
{* Сохранить в черновиках / Перенести в черновики *}
|
||||
{if ! $topic || ( $topic && $topic->getPublish() != 0 )}
|
||||
{component 'button' type='button' classes='js-topic-draft-button' text=$aLang.topic.add.button[ ( $sEvent == 'add' ) ? 'save_as_draft' : 'mark_as_draft' ]}
|
||||
{if ! $topic}
|
||||
{component 'button' type='button' classes='js-topic-draft-button' text=$aLang.topic.add.button.save_as_draft}
|
||||
{else}
|
||||
{component 'button' type='button' classes='js-topic-draft-button' text=$aLang.topic.add.button[ ( $topic->getPublish() != 0 ) ? 'mark_as_draft' : 'update' ]}
|
||||
{/if}
|
||||
</form>
|
||||
|
||||
|
|
Loading…
Reference in a new issue