75 lines
2.9 KiB
PHP
75 lines
2.9 KiB
PHP
<!-- bluebox theme -->
|
||
<div class="col-lg-12">
|
||
<div class="panel panel-default">
|
||
<div class="panel-heading">Yeni İçerik Ekleme Formu</div>
|
||
<div class="panel-body">
|
||
<div class="row">
|
||
<div class="col-lg-12">
|
||
<form role="form" method="post" >
|
||
|
||
|
||
<div class="form-group">
|
||
<label>Kategori</label>
|
||
<select name="category_id" id="" class="form-control">
|
||
|
||
<option value="">Yazının kategorinisi seçiniz...</option>
|
||
|
||
{[ echo KategoriListesi(0,0,0,content_edit($id)->category_id); ]}
|
||
</select>
|
||
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label >BAŞLIK :</label>
|
||
<input type="text" name="title" class="form-control" value="{[ echo content_edit($id)->title ]}">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label >YAZI :</label>
|
||
<textarea name="content" id="editor" rows="20" class="form-control">{[ echo content_edit($id)->content ]}</textarea>
|
||
<script>
|
||
CKEDITOR.replace('editor', {
|
||
height: 1000,
|
||
language: "{{LANG}}" ,
|
||
extraPlugins: 'codesnippet, youtube',
|
||
});
|
||
</script>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label >ETİKETLER :</label>
|
||
<input type="text" name="label" class="form-control" value="{[ echo content_edit($id)->label ]}">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label >KISA AÇIKLAMA :</label>
|
||
<input type="text" name="keywords" class="form-control" value="{[ echo content_edit($id)->keywords ]}">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label >Status :</label>
|
||
<select name="status" class="form-control">
|
||
<option value="1" {{selected('1', content_edit($id)->status)}}>Aktif</option>
|
||
<option value="0" {{selected('0', content_edit($id)->status)}}>Pasif</option>
|
||
</select>
|
||
|
||
</div>
|
||
|
||
|
||
<div class="form-group">
|
||
<label>{{lang('wiki','choose_language')}}</label>
|
||
<select name="lang" class="form-control" required>
|
||
<option value="">{{lang('wiki','please_select_language')}}</option>
|
||
@foreach (languageList() as $key)
|
||
<option value="{{ $key->slug }}" {{ selected($key->slug, content_edit($id)->lang) }}>{{ $key->language }}</option>
|
||
@endforeach
|
||
</select>
|
||
</div>
|
||
|
||
<input type="hidden" name="id" value="{[ echo $id; ]}">
|
||
<button type="submit" class="btn btn-primary btn-block">{[ echo lang('form','update') ]}</button>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div> |