{{#d-modal-body class="install-theme" title="admin.customize.theme.install"}} {{#unless directRepoInstall}}
{{install-theme-item value="popular" selection=selection label="admin.customize.theme.install_popular"}} {{install-theme-item value="local" selection=selection label="admin.customize.theme.install_upload"}} {{install-theme-item value="remote" selection=selection label="admin.customize.theme.install_git_repo"}} {{install-theme-item value="create" selection=selection label="admin.customize.theme.install_create" showIcon=true}}
{{/unless}}
{{#if popular}} {{/if}} {{#if local}}

{{i18n "admin.customize.theme.import_file_tip"}}
{{/if}} {{#if remote}}
{{i18n "admin.customize.theme.import_web_tip"}}
{{input value=uploadUrl placeholder=urlPlaceholder}}
{{d-button class="btn-small advanced-repo" action=(action "toggleAdvanced") label="admin.customize.theme.import_web_advanced"}} {{#if advancedVisible}}
{{i18n "admin.customize.theme.remote_branch"}}
{{input value=branch placeholder="master"}}
{{#if showPublicKey}}
{{i18n "admin.customize.theme.public_key"}}
{{textarea readonly=true value=publicKey}}
{{else}} {{#if privateChecked}}
{{i18n "admin.customize.theme.public_key_note"}}
{{/if}} {{/if}} {{/if}}
{{/if}} {{#if create}}
{{i18n "admin.customize.theme.create_name"}}
{{input value=name placeholder=placeholder}}
{{i18n "admin.customize.theme.create_type"}}
{{combo-box valueProperty="value" content=createTypes value=selectedType onChange=(action (mut selectedType)) }}
{{/if}} {{#if directRepoInstall}}
{{html-safe (i18n "admin.customize.theme.direct_install_tip" name=uploadName)}}
{{uploadUrl}}
{{/if}}
{{/d-modal-body}} {{#unless popular}} {{/unless}}