1 Commits
1.1.6 ... 1.1.7

Author SHA1 Message Date
2ff3c846e9 small changes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2025-07-29 08:49:11 +00:00
2 changed files with 15 additions and 9 deletions

View File

@@ -380,7 +380,7 @@
} }
.subtitle { .subtitle {
font-size: 20px; font-size: 18px;
margin: 4px 0; margin: 4px 0;
color: #999; color: #999;
} }

View File

@@ -214,9 +214,11 @@ switch ($_GET["op"]) {
} }
echo '</div>'; echo '</div>';
} }
$more = 0;
echo "<form action=\"#\" method=\"post\" id=\"deploy_{$template->name}_form\">"; echo "<form action=\"#\" method=\"post\" id=\"deploy_{$template->name}_form\">";
echo "<div class=\"app-fields\">"; echo "<div class=\"app-fields\">";
foreach ($template->fields as $field) { foreach ($template->fields as $field) {
if ($field->advanced) $more = 1;
echo "<div class=\"app-field ".($field->advanced ? "advanced" : "")."\">"; echo "<div class=\"app-field ".($field->advanced ? "advanced" : "")."\">";
if (!empty($field->title)) echo "<div class=\"row\"><h3>".$field->title."</h3></div>"; if (!empty($field->title)) echo "<div class=\"row\"><h3>".$field->title."</h3></div>";
if (isset($field->generated)) { if (isset($field->generated)) {
@@ -241,27 +243,29 @@ switch ($_GET["op"]) {
echo "</div>"; echo "</div>";
echo "<div class=\"row buttons\">"; echo "<div class=\"row buttons\">";
if ($more) {
echo " echo "
<div class=\"mb-3\"> <div class=\"mb-3\" style=\"margin-right:30px;\">
<button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"more_{$template->name}_btn\">More</button> <button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"more_{$template->name}_btn\">More</button>
</div>"; </div>";
}
if ($reinstall) { if ($reinstall) {
echo " echo "
<div class=\"mb-3\" style=\"margin-left:30px;\"> <div class=\"mb-3\" style=\"margin-right:30px;\">
<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\" id=\"update_{$template->name}_btn\" onclick=\"update_deployment('{$template->name}')\">Update</button> <button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\" id=\"update_{$template->name}_btn\" onclick=\"update_deployment('{$template->name}')\">Update</button>
</div>"; </div>";
} }
echo " echo "
<div class=\"mb-3\" style=\"margin-left:30px;\"> <div class=\"mb-3\" style=\"margin-right:30px;\">
<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\" id=\"deploy_{$template->name}_btn\">".($reinstall ? "Reinstall" : "Install")."</button> <button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\" id=\"deploy_{$template->name}_btn\">".($reinstall ? "Reinstall" : "Install")."</button>
</div>"; </div>";
if ($reinstall) { if ($reinstall) {
echo " echo "
<div class=\"mb-3\" style=\"margin-left:30px;\"> <div class=\"mb-3\" style=\"margin-right:30px;\">
<button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"uninstall_{$template->name}_btn\" onclick=\"uninstall('{$template->name}')\">Uninstall</button> <button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"uninstall_{$template->name}_btn\" onclick=\"uninstall('{$template->name}')\">Uninstall</button>
</div>"; </div>";
} }
echo "<div class=\"mb-3\" style=\"margin-left:230px;float:\"> echo "<div class=\"mb-3\" style=\"margin-left:200px;float:\">
<button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"cancel_{$template->name}_btn\">Cancel</button> <button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"cancel_{$template->name}_btn\">Cancel</button>
</div>"; // buttons </div>"; // buttons
echo " echo "
@@ -273,6 +277,8 @@ switch ($_GET["op"]) {
jQuery(this).hide(); jQuery(this).hide();
}); });
jQuery('#more_{$template->name}_btn').click(function() { jQuery('#more_{$template->name}_btn').click(function() {
currentText = jQuery(this).text();
jQuery(this).text(currentText === 'More' ? 'Less' : 'More');
jQuery('.advanced').each(function() { jQuery('.advanced').each(function() {
jQuery(this).toggle(); jQuery(this).toggle();
}); });