2024-06-04 03:01:19 -04:00
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<link rel="stylesheet" href="/css/xp.css">
|
|
|
|
|
<script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div class="flex flex-col w-full h-full window">
|
|
|
|
|
<div class="title-bar">
|
|
|
|
|
<div class="title-bar-text">Workshop - <%~ include('/workshop/structure_name', {structure: it.structure}) %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-row flex-grow window-body">
|
|
|
|
|
<div class="w-1/5 h-full">
|
|
|
|
|
<%~ include('/workshop/sidebar', it) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="main-editor" class="flex flex-grow">
|
|
|
|
|
<div id="left-pane" class="flex-grow h-full ">
|
|
|
|
|
<form hx-put="/workshop/<%= it.structure.id %>/settings" hx-target="#result" class="p-2 flex flex-col gap-2 max-w-48">
|
|
|
|
|
<div class="field-row-stacked">
|
|
|
|
|
<label for="name">Route Prefix</label>
|
2024-06-08 11:42:27 -04:00
|
|
|
<input name="route_prefix" value="<%= it.structure.route_prefix || "" %>">
|
2024-06-04 03:01:19 -04:00
|
|
|
</div>
|
2024-06-08 15:30:28 -04:00
|
|
|
<div class="field-row-stacked">
|
|
|
|
|
<label for="name"><div><head></div><div></div></label>
|
|
|
|
|
<div class="text-xs"></div>
|
|
|
|
|
<textarea name="head_injection" value="<%= it.structure.route_prefix || "" %>"><%= it.structure.head_injection || "" %></textarea>
|
|
|
|
|
</div>
|
2024-06-04 03:01:19 -04:00
|
|
|
<button id="save-btn" type="submit">Save</button>
|
|
|
|
|
<div id="result"></div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|