mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-21 09:49:34 +00:00
Combine args input and execute button in admin panel
This commit is contained in:
parent
ab86df13a5
commit
e96717e5c4
1 changed files with 13 additions and 8 deletions
|
@ -35,19 +35,24 @@ else
|
||||||
<div class="ui blue segment">
|
<div class="ui blue segment">
|
||||||
<h3>@command.Name()</h3>
|
<h3>@command.Name()</h3>
|
||||||
<form>
|
<form>
|
||||||
|
<input type="text" name="command" style="display: none;" value="@command.FirstAlias">
|
||||||
@if (command.RequiredArgs() > 0)
|
@if (command.RequiredArgs() > 0)
|
||||||
{
|
{
|
||||||
<div class="ui input" style="width: @(Model.Request.IsMobile() ? 100 : 30)%;">
|
<div class="ui left action input" style="width: 100%">
|
||||||
<input type="text" name="args" placeholder="@command.Arguments()">
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
}
|
|
||||||
<input type="text" name="command" style="display: none;" value="@command.FirstAlias">
|
|
||||||
<button type="submit" class="ui green button">
|
<button type="submit" class="ui green button">
|
||||||
<i class="play icon"></i>
|
<i class="play icon"></i>
|
||||||
Execute
|
Execute
|
||||||
</button>
|
</button>
|
||||||
|
<input type="text" name="args" placeholder="@command.Arguments()">
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<button type="submit" class="ui green button">
|
||||||
|
<i class="play icon"></i>
|
||||||
|
Execute
|
||||||
|
</button>
|
||||||
|
}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue