Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
в шаблоне добавляешь кнопке событие onsubmit c функцией if, также checkbox(сама галка), отмеченность которой и проверяет вышеуказанная функция .
{if !$SessionRefererLogin && $smarty.const.CONF_AFFILIATE_PROGRAM_ENABLED eq 1}
<tr><td colspan="2"> </td></tr>
<tr class="row_{cycle values='odd,even'}">
<td style="font-size: 90%;">{"usr_custinfo_referrer"|translate}</td>
<td><input type="text" name="affiliationLogin" value="{$affiliationLogin|escape:'html'}" style="width: 100px;" /></td>
</tr>
{/if}
{*
@features
*}
</table>
<p><input type="submit" id="reg_submit_btn" value="{"btn_ok"|translate}" name="save" /></p>
</div>
</form>
{if !$SessionRefererLogin && $smarty.const.CONF_AFFILIATE_PROGRAM_ENABLED eq 1}
<tr><td colspan="2"> </td></tr>
<tr class="row_{cycle values='odd,even'}">
<td style="font-size: 90%;">{"usr_custinfo_referrer"|translate}</td>
<td><input type="text" name="affiliationLogin" value="{$affiliationLogin|escape:'html'}" style="width: 100px;" /></td>
</tr>
{/if}
{*
@features
*}
</table>
<input type="checkbox" onclick="if (this.checked)document.getElementById('reg_submit_btn').disabled=false;" style="padding-right:15px">Со всем согласен<br />
<p><input type="submit" id="reg_submit_btn" value="{"btn_ok"|translate}" name="save" disabled="disabled" /></p>
</div>
</form>