You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.7 KiB
36 lines
1.7 KiB
2 months ago
|
<%= erb :header %>
|
||
|
<script src="/js/edit_area_full.js"></script>
|
||
|
<script language="javascript" type="text/javascript">
|
||
|
editAreaLoader.init({
|
||
|
id: "codedata",
|
||
|
syntax: "bash",
|
||
|
start_highlight: true,
|
||
|
language: "ru",
|
||
|
toolbar: "search, go_to_line, fullscreen, |, undo, redo, |, select_font,|, highlight, reset_highlight, word_wrap, |, syntax_selection"
|
||
|
});
|
||
|
</script>
|
||
|
<% unless @error_data.nil? %>
|
||
|
<div class="container">
|
||
|
<div class="alert alert-warning alert-dismissible fade show" role="alert"><span><%= @error_data %></span><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Закрыть"></button></div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<div class="container">
|
||
|
<form action="/rcpcreate" method="post">
|
||
|
<div class="mb-3">
|
||
|
<label for="filepath" class="form-label">Имя рецепта (англиские буквы, _, .)</label>
|
||
|
<input type="email" class="form-control" id="filepath" name="filepath">
|
||
|
</div>
|
||
|
<div class="mb-3">
|
||
|
<label for="description" class="form-label">Описание рецепта сборки</label>
|
||
|
<textarea class="form-control" id="description" name="description" rows="3"></textarea>
|
||
|
</div>
|
||
|
<div class="mb-3">
|
||
|
<label for="codedata" class="form-label">Код</label>
|
||
|
<textarea class="form-control" id="codedata" name="codedata" rows="3"></textarea>
|
||
|
</div>
|
||
|
<div class="mb-3 text-center">
|
||
|
<button type="submit" class="btn btn-primary">Сохранить</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<%= erb :footer %>
|