Skip to content

Commit

Permalink
design unified
Browse files Browse the repository at this point in the history
  • Loading branch information
Tealk committed Oct 7, 2021
1 parent 76aab57 commit ed8167d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 19 deletions.
21 changes: 13 additions & 8 deletions src/admin/service-group.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,18 @@
<?php
} ?>
<div class="form-group">
<div class="col-sm-6"><label for="group"><?php echo _("Service Group Name"); ?>: </label><input type="text" maxlength="50" name="group" value="<?php echo ((isset($_POST['group'])) ? htmlspecialchars($_POST['group'], ENT_QUOTES) : $group_value); ?>" id="group" placeholder="<?php echo _("service group name"); ?>" class="form-control" required></div>
<div class="col-sm-6"><label for="description"><?php echo _("Description"); ?>: </label><input type="text" maxlength="100" name="description" value="<?php echo ((isset($_POST['description'])) ? htmlspecialchars($description_value, ENT_QUOTES) : $description_value); ?>" id="description" placeholder="<?php echo _("Description"); ?>" class="form-control"></div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label for="visibility_id"><?php echo _("Visibility"); ?>: </label>
<select name="visibility_id" id="visibility_id" class="form-control">
<div class="input-group mb-3">
<span class="input-group-text" id="group"><?php echo _("Service Group Name"); ?></span>
<input type="text" class="form-control" maxlength="50" name="group" value="<?php echo ((isset($_POST['group'])) ? htmlspecialchars($_POST['group'], ENT_QUOTES) : $group_value); ?>" id="group" class="form-control" aria-describedby="group" required>
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="description"><?php echo _("Description"); ?></span>
<input type="text" class="form-control" maxlength="50" name="description" value="<?php echo ((isset($_POST['description'])) ? htmlspecialchars($_POST['description'], ENT_QUOTES) : $description_value); ?>" id="description" class="form-control" aria-describedby="description">
</div>

<div class="input-group mb-3">
<label class="input-group-text" for="group_id"><?php echo _("Service Group"); ?></label>
<select class="form-select" name="group_id" id="group_id">
<?php
if (!empty($visibility_id_value)) {
$visibility_id = $visibility_id_value;
Expand All @@ -77,12 +82,12 @@
}
?>
</select>
<button class="btn btn-outline-primary" type="submit"><?php echo _("Submit"); ?></button>
</div>
</div>
<?php
if ($boolEdit) {
echo '<input type="hidden" id="id" name="id" value="' . $group_id . '">';
}
?>
<button type="submit" class="btn btn-primary float-end"><?php echo _("Submit"); ?></button>
</form>
21 changes: 13 additions & 8 deletions src/admin/service.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,18 @@
<?php
} ?>
<div class="form-group">
<div class="col-sm-6"><label for="service"><?php echo _("Service"); ?>: </label><input type="text" maxlength="50" name="service" value="<?php echo ((isset($_POST['service'])) ? htmlspecialchars($_POST['service'], ENT_QUOTES) : $service_value); ?>" id="service" placeholder="<?php echo _("service"); ?>" class="form-control" required></div>
<div class="col-sm-6"><label for="description"><?php echo _("Description"); ?>: </label><input type="text" maxlength="200" name="description" value="<?php echo ((isset($_POST['description'])) ? htmlspecialchars($_POST['description'], ENT_QUOTES) : $description_value); ?>" id="description" placeholder="<?php echo _("Description"); ?>" class="form-control"></div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label for="group_id"><?php echo _("Service Group"); ?>: </label>
<select name="group_id" id="group_id" class="form-control">
<div class="input-group mb-3">
<span class="input-group-text" id="service"><?php echo _("Service"); ?></span>
<input type="text" class="form-control" maxlength="50" name="service" value="<?php echo ((isset($_POST['service'])) ? htmlspecialchars($_POST['service'], ENT_QUOTES) : $service_value); ?>" id="service" class="form-control" aria-describedby="service" required>
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="description"><?php echo _("Description"); ?></span>
<input type="text" class="form-control" maxlength="50" name="description" value="<?php echo ((isset($_POST['description'])) ? htmlspecialchars($_POST['description'], ENT_QUOTES) : $description_value); ?>" id="description" class="form-control" aria-describedby="description">
</div>

<div class="input-group mb-3">
<label class="input-group-text" for="group_id"><?php echo _("Service Group"); ?></label>
<select class="form-select" name="group_id" id="group_id">
<?php
if (!empty($group_id_value)) {
$group_id = $group_id_value;
Expand All @@ -79,12 +84,12 @@
}
?>
</select>
<button class="btn btn-outline-primary" type="submit"><?php echo _("Submit"); ?></button>
</div>
</div>
<?php
if ($boolEdit) {
echo '<input type="hidden" id="id" name="id" value="' . $service_id . '">';
}
?>
<button type="submit" class="btn btn-primary float-end"><?php echo _("Submit"); ?></button>
</form>
2 changes: 1 addition & 1 deletion src/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ed8167d

Please sign in to comment.