Skip to content

Commit

Permalink
Fixed deployment included into the html request
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikBuetler committed Jun 14, 2024
1 parent d33a189 commit ddabf0c
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions views/builder/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ function checkPercentageIntervals(dependency){
</div>
</section>
</div>

</div>
<div class="modal fade" id="modal-deployment">
<div class="modal-dialog">
Expand All @@ -233,18 +232,17 @@ function checkPercentageIntervals(dependency){
<h4 class="modal-title">Select Deployment</h4>
</div>
<div class="modal-body">
<!--<form id="form" action="/builder/create/" method="POST""> -->
<div class="form-group">
<label>Deployment</label>
<select class="form-control" name="deployment" title="deployment" required>
<?php if(!empty($data['deployments'])) { ?>
<?php foreach ($data['deployments'] as $deployment) { ?>
<option value="<?php echo $deployment->getItem(); ?>" <?php if($data['copyData']['deployment'] == $deployment->getItem()) echo 'selected'; ?>><?php echo $deployment->getItem(); ?></option>
<?php } ?>
<div class="form-group">
<label>Deployment</label>
<select class="form-control" name="deployment" title="deployment" required>
<?php if(!empty($data['deployments'])) { ?>
<?php foreach ($data['deployments'] as $deployment) { ?>
<option value="<?php echo $deployment->getItem(); ?>" <?php if($data['copyData']['deployment'] == $deployment->getItem()) echo 'selected'; ?>><?php echo $deployment->getItem(); ?></option>
<?php } ?>
</select>
</div>
</form>
<?php } ?>
</select>
</div>

</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" onclick="document.getElementById('form').submit();">Confirm</button>
Expand All @@ -254,4 +252,5 @@ function checkPercentageIntervals(dependency){
</div>
</div>
</div>
</form>
</div>

0 comments on commit ddabf0c

Please sign in to comment.