|
1197 | 1197 | {/each} |
1198 | 1198 | </select> |
1199 | 1199 | </div> |
1200 | | - <div class="mb-3"> |
1201 | | - <label for="workerInit" class="form-label">Worker initialization (Optional)</label> |
1202 | | - <textarea |
1203 | | - name="workerInit" |
1204 | | - id="workerInit" |
1205 | | - class="form-control font-monospace" |
1206 | | - rows="5" |
1207 | | - disabled={checkingConfiguration} |
1208 | | - bind:value={workerInitControl} |
1209 | | - /> |
1210 | | - </div> |
1211 | | - {#if $page.data.userInfo.slurm_accounts.length > 0} |
1212 | | - <div class="mb-3"> |
1213 | | - <div class="form-check"> |
1214 | | - <input |
1215 | | - class="form-check-input" |
1216 | | - type="checkbox" |
1217 | | - id="setSlurmAccount" |
1218 | | - bind:checked={setSlurmAccount} |
1219 | | - /> |
1220 | | - <label class="form-check-label" for="setSlurmAccount"> Set SLURM account </label> |
1221 | | - </div> |
1222 | | - </div> |
1223 | | - {#if setSlurmAccount} |
1224 | | - <div class="mb-3"> |
1225 | | - <label for="slurmAccount" class="form-label">SLURM account</label> |
1226 | | - <select |
1227 | | - name="slurmAccount" |
1228 | | - id="slurmAccount" |
1229 | | - class="form-control" |
1230 | | - disabled={checkingConfiguration} |
1231 | | - bind:value={slurmAccount} |
| 1200 | + <div class="accordion" id="accordion-workflow-advanced-options"> |
| 1201 | + <div class="accordion-item"> |
| 1202 | + <h2 class="accordion-header"> |
| 1203 | + <button |
| 1204 | + class="accordion-button collapsed" |
| 1205 | + type="button" |
| 1206 | + data-bs-toggle="collapse" |
| 1207 | + data-bs-target="#collapse-workflow-advanced-options" |
| 1208 | + aria-expanded="false" |
| 1209 | + aria-controls="collapse-workflow-advanced-options" |
1232 | 1210 | > |
1233 | | - {#each $page.data.userInfo.slurm_accounts as account} |
1234 | | - <option>{account}</option> |
1235 | | - {/each} |
1236 | | - </select> |
| 1211 | + Advanced Options |
| 1212 | + </button> |
| 1213 | + </h2> |
| 1214 | + <div |
| 1215 | + id="collapse-workflow-advanced-options" |
| 1216 | + class="accordion-collapse collapse" |
| 1217 | + data-bs-parent="#accordion-workflow-advanced-options" |
| 1218 | + > |
| 1219 | + <div class="accordion-body"> |
| 1220 | + <div class="mb-3"> |
| 1221 | + <label for="workerInit" class="form-label">Worker initialization (Optional)</label> |
| 1222 | + <textarea |
| 1223 | + name="workerInit" |
| 1224 | + id="workerInit" |
| 1225 | + class="form-control font-monospace" |
| 1226 | + rows="5" |
| 1227 | + disabled={checkingConfiguration} |
| 1228 | + bind:value={workerInitControl} |
| 1229 | + /> |
| 1230 | + </div> |
| 1231 | + {#if $page.data.userInfo.slurm_accounts.length > 0} |
| 1232 | + <div class="mb-3"> |
| 1233 | + <div class="form-check"> |
| 1234 | + <input |
| 1235 | + class="form-check-input" |
| 1236 | + type="checkbox" |
| 1237 | + id="setSlurmAccount" |
| 1238 | + bind:checked={setSlurmAccount} |
| 1239 | + /> |
| 1240 | + <label class="form-check-label" for="setSlurmAccount"> |
| 1241 | + Set SLURM account |
| 1242 | + </label> |
| 1243 | + </div> |
| 1244 | + </div> |
| 1245 | + {#if setSlurmAccount} |
| 1246 | + <div class="mb-3"> |
| 1247 | + <label for="slurmAccount" class="form-label">SLURM account</label> |
| 1248 | + <select |
| 1249 | + name="slurmAccount" |
| 1250 | + id="slurmAccount" |
| 1251 | + class="form-control" |
| 1252 | + disabled={checkingConfiguration} |
| 1253 | + bind:value={slurmAccount} |
| 1254 | + > |
| 1255 | + {#each $page.data.userInfo.slurm_accounts as account} |
| 1256 | + <option>{account}</option> |
| 1257 | + {/each} |
| 1258 | + </select> |
| 1259 | + </div> |
| 1260 | + {/if} |
| 1261 | + {/if} |
| 1262 | + </div> |
1237 | 1263 | </div> |
1238 | | - {/if} |
1239 | | - {/if} |
| 1264 | + </div> |
| 1265 | + </div> |
1240 | 1266 | </form> |
1241 | 1267 | </svelte:fragment> |
1242 | 1268 | <svelte:fragment slot="footer"> |
|
0 commit comments