Skip to content

Commit

Permalink
Merge pull request #17 from 77zealous/master
Browse files Browse the repository at this point in the history
Fixed value showed always was 1 when editing
  • Loading branch information
z-song authored Apr 2, 2019
2 parents 19092b3 + a021222 commit ef2bee8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions resources/views/edit/hash.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<label for="inputKey" class="col-sm-2 control-label">Key</label>

<div class="col-sm-10">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] or '' }}">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] ?? '' }}">
</div>
</div>

<div class="form-group">
<label for="inputExpire" class="col-sm-2 control-label">Expires</label>

<div class="col-sm-10">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] or -1 }}">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] ?? -1 }}">
</div>
</div>

Expand Down Expand Up @@ -201,4 +201,4 @@
</script>

@endsection
@endsection
6 changes: 3 additions & 3 deletions resources/views/edit/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<label for="inputKey" class="col-sm-2 control-label">Key</label>

<div class="col-sm-10">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] or '' }}">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] ?? '' }}">
</div>
</div>

<div class="form-group">
<label for="inputExpire" class="col-sm-2 control-label">Expires</label>

<div class="col-sm-10">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] or -1 }}">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] ?? -1 }}">
</div>
</div>

Expand Down Expand Up @@ -197,4 +197,4 @@
</script>

@endsection
@endsection
6 changes: 3 additions & 3 deletions resources/views/edit/set.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<label for="inputKey" class="col-sm-2 control-label">Key</label>

<div class="col-sm-10">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] or '' }}">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] ?? '' }}">
</div>
</div>

<div class="form-group">
<label for="inputExpire" class="col-sm-2 control-label">Expires</label>

<div class="col-sm-10">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] or -1 }}">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] ?? -1 }}">
</div>
</div>

Expand Down Expand Up @@ -150,4 +150,4 @@
</script>

@endsection
@endsection
8 changes: 4 additions & 4 deletions resources/views/edit/string.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
<label for="inputKey" class="col-sm-2 control-label">Key</label>

<div class="col-sm-10">
<input type="text" class="form-control key" name="key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] or '' }}">
<input type="text" class="form-control key" name="key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] ?? '' }}">
</div>
</div>
<div class="form-group">
<label for="inputValue" class="col-sm-2 control-label">Value</label>

<div class="col-sm-10">
<textarea class="form-control value" id="inputValue" rows="6" name="value">{{ $data['value'] or '' }}</textarea>
<textarea class="form-control value" id="inputValue" rows="6" name="value">{{ $data['value'] ?? '' }}</textarea>
</div>
</div>
<div class="form-group">
<label for="inputExpire" class="col-sm-2 control-label">Expire</label>

<div class="col-sm-10">
<input type="number" class="form-control expire" id="inputExpire" name="ttl" value="{{ $data['ttl'] or -1 }}">
<input type="number" class="form-control expire" id="inputExpire" name="ttl" value="{{ $data['ttl'] ?? -1 }}">
</div>
</div>

Expand All @@ -51,4 +51,4 @@
</div>
<!-- /.box-body -->

@endsection
@endsection
6 changes: 3 additions & 3 deletions resources/views/edit/zset.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<label for="inputKey" class="col-sm-2 control-label">Key</label>

<div class="col-sm-10">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] or '' }}">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] ?? '' }}">
</div>
</div>

<div class="form-group">
<label for="inputExpire" class="col-sm-2 control-label">Expires</label>

<div class="col-sm-10">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] or -1 }}">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] ?? -1 }}">
</div>
</div>

Expand Down Expand Up @@ -201,4 +201,4 @@
</script>

@endsection
@endsection

0 comments on commit ef2bee8

Please sign in to comment.