{{$modOptions = array( 'create_record_state', 'record_expiry_date', 'record_pinned', 'record_allow_comments', 'record_comment_cutoff', 'record_meta_keywords', 'record_meta_description' );}} {template="pageHeader" if="!\IPS\Request::i()->isAjax()" group="global" app="core" params="\IPS\Member::loggedIn()->language()->addToStack( $title )"} {{$guestPostBeforeRegister = ( !\IPS\Member::loggedIn()->member_id ) ? !$category->can( 'add', \IPS\Member::loggedIn(), FALSE ) : NULL;}} {{$recordClass = 'IPS\cms\Records' . $database->_id;}} {{$modQueued = $recordClass::moderateNewItems( \IPS\Member::loggedIn(), $category, $guestPostBeforeRegister );}} {{if $guestPostBeforeRegister or $modQueued}} {template="postingInformation" app="core" group="forms" params="$guestPostBeforeRegister, $modQueued, TRUE"} {{endif}}
{{foreach $hiddenValues as $k => $v}} {{endforeach}} {{if $uploadField}} {{endif}}

{lang="record_information" sprintf="$database->recordWord(1, TRUE)"}

{{if is_countable( $elements) AND \count( $elements ) > 1}} {{if !empty( $errorTabs )}}

{lang="tab_error"}

{{endif}}
{{foreach $elements as $name => $contents}}
{{if $hasModOptions && ( $name == 'topic_mainTab' OR $name == 'content_record_form_mainTab' ) }}
{{endif}}
    {{foreach $contents as $inputName => $input}} {{if $inputName == 'content_field_' . $database->field_title and isset( $contents['record_static_furl_set'] ) and isset( $contents['record_static_furl'] )}} {template="customslug" app="cms" location="global" group="records" params="$collection, $input, $category, $page, $database, $record"}
    {{endif}} {{if !\in_array( $inputName, $modOptions ) and $inputName !== 'record_static_furl_set' and $inputName !== 'record_static_furl'}} {$input|raw} {{endif}} {{endforeach}}
{{if $hasModOptions && $name == 'content_record_form_mainTab'}}

{lang="cms_moderator_options"}

    {{foreach $elements as $collection}} {{foreach $collection as $inputName => $input}} {{if \in_array( $inputName, $modOptions )}} {{if $inputName == 'record_expiry_date' or $inputName == 'record_comment_cutoff'}}
    • language()->addToStack('_date_format_yyyy'), \IPS\Member::loggedIn()->language()->addToStack('_date_format_mm'), \IPS\Member::loggedIn()->language()->addToStack('_date_format_dd') ), str_replace( 'Y', 'YY', \IPS\Member::loggedIn()->language()->preferredDateFormat() ) )"}'>
  • {{else}} {$input|raw} {{endif}} {{endif}} {{endforeach}} {{endforeach}}
{{endif}}
{{endforeach}}
{{else}}
{{if $hasModOptions}}
{{endif}}
    {{foreach $elements as $collection}} {{foreach $collection as $inputName => $input}} {{if $inputName == 'content_field_' . $database->field_title and isset( $collection['record_static_furl_set'] ) and isset( $collection['record_static_furl'] )}} {template="customslug" app="cms" location="global" group="records" params="$collection, $input, $category, $page, $database, $record"}
    {{endif}} {{if !\in_array( $inputName, $modOptions ) and $inputName !== 'record_static_furl_set' and $inputName !== 'record_static_furl'}} {$input|raw} {{endif}} {{endforeach}} {{endforeach}}
{{if $hasModOptions}}

{lang="cms_moderator_options"}

    {{foreach $elements as $collection}} {{foreach $collection as $inputName => $input}} {{if \in_array( $inputName, $modOptions )}} {{if $inputName == 'record_expiry_date' or $inputName == 'record_comment_cutoff'}}
    • language()->addToStack('_date_format_yyyy'), \IPS\Member::loggedIn()->language()->addToStack('_date_format_mm'), \IPS\Member::loggedIn()->language()->addToStack('_date_format_dd') ), str_replace( 'Y', 'YY', \IPS\Member::loggedIn()->language()->preferredDateFormat() ) )"}{{endif}}' data-preferredFormat="{{if $input->value instanceof \IPS\DateTime}}{$input->value->localeDate()}{{else}}{$input->value}{{endif}}" {{if $input->disabled}}disabled aria-disabled='true'{{endif}}>
    • {{if $input->options['unlimited'] !== NULL and ( !$input->disabled or $input->options['unlimited'] === $input->value )}}   {lang="or"}   options['unlimited'] === $input->value}}checked aria-checked='true'{{endif}} {{if $input->options['disabled']}}disabled{{endif}} {{if $input->toggles AND \count( $input->toggles )}}{{if $input->toggleOn === FALSE}}data-togglesOff{{else}}data-togglesOn{{endif}}="{expression="implode( ',', $input->toggles )"}"{{endif}} aria-labelledby='label_{$input->name}_unlimited'> {{endif}}
  • {{else}} {$input|raw} {{endif}} {{endif}} {{endforeach}} {{endforeach}}
{{endif}}
{{endif}}