-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1 @@ | ||
<div class="elementForm defaultForm elementFormDigitizer"> | ||
|
||
{% stylesheets filter="sass" | ||
"bundles/mapbenderdigitizer/sass/element/manager-edit.scss" %} | ||
<link rel="stylesheet" type="text/css" href="{{ asset_url }}"/> | ||
{% endstylesheets %} | ||
|
||
<script language="JavaScript"> | ||
$(function() { | ||
var winHeight = $(window).height(); | ||
var popupContainer = $(".popupContainer.modal > .popup"); | ||
popupContainer.css({ | ||
'margin-top': 0, | ||
'width': $(document).width(), | ||
'height': winHeight - 10 | ||
}); | ||
var formHolder = $(".popupScroll > .popupSubContent", this); | ||
var form = $("> .contentItem", formHolder); | ||
var textarea = $("textarea", form); | ||
textarea.css("height", formHolder.height() - (form.height() - textarea.height())); | ||
CodeMirror.initTextAreaAsYaml(textarea[0]).setSize(textarea.width(), textarea.height()); | ||
// var yamlEditorElement = yy(( $("#elementForm > div > div.inputWrapper.code-yaml > div"); | ||
// yamlEditorElement.animate({ | ||
// height: $(window).height() - 285 | ||
// }, 20); | ||
}) | ||
</script> | ||
{{ form_label(form.title) }}{{ form_widget(form.title) }} | ||
<div class="clearContainer"></div> | ||
{{ form_label(form.configuration.target) }}{{ form_widget(form.configuration.target) }} | ||
<div class="clearContainer"></div> | ||
{{ form_label(form.configuration.schemes) }}{{ form_widget(form.configuration.schemes) }} | ||
</div> | ||
{% extends "MapbenderDigitizerBundle:ElementAdmin:digitizeradmin.html.twig" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters