-
Notifications
You must be signed in to change notification settings - Fork 0
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
Igor Goroun
committed
Nov 7, 2016
1 parent
881c880
commit 9829627
Showing
16 changed files
with
402 additions
and
77 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace IgorGoroun\FTNWBundle\Form; | ||
|
||
use Symfony\Component\Form\AbstractType; | ||
use Symfony\Component\Form\Extension\Core\Type\EmailType; | ||
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
use Symfony\Component\Form\Extension\Core\Type\TextareaType; | ||
use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
use Symfony\Component\Form\FormBuilderInterface; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
|
||
class EmailPostType extends AbstractType | ||
{ | ||
/** | ||
* @param FormBuilderInterface $builder | ||
* @param array $options | ||
*/ | ||
public function buildForm(FormBuilderInterface $builder, array $options) | ||
{ | ||
$builder | ||
->add('hTo',EmailType::class,['label'=>'To:','attr'=>['class'=>'form-control','placeholder'=>'Recipient e-mail'],'label_attr'=>['class'=>'col-xs-12 col-sm-2 control-label']]) | ||
->add('subject',TextType::class,['label'=>'Subject:','attr'=>['placeholder'=>'Subject','class'=>'form-control'],'label_attr'=>['class'=>'col-sm-2 control-label']]) | ||
->add('body',TextareaType::class,['attr'=>['rows'=>14,'class'=>'form-control textarea ftnweditor']]) | ||
->add('save',SubmitType::class,['label'=>'Send','attr'=>['value'=>'Send','class'=>'btn btn-primary btn-md']]) | ||
; | ||
} | ||
|
||
/** | ||
* @param OptionsResolver $resolver | ||
*/ | ||
public function configureOptions(OptionsResolver $resolver) | ||
{ | ||
$resolver->setDefaults(array( | ||
'data_class' => 'IgorGoroun\FTNWBundle\Entity\Netmail' | ||
)); | ||
} | ||
} |
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% extends 'FTNWBundle:Layout:main.html.twig' %} | ||
|
||
{% block stylesheets %} | ||
{{ parent() }} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
{{ parent() }} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-3"> | ||
{% include 'FTNWBundle:Editor:netlistmenu.html.twig' %} | ||
</div> | ||
<div class="col-md-9"> | ||
<div class="page-header hidden-xs"> | ||
<h1 class="bloghead"><small>new</small> Email</h1> | ||
</div> | ||
{{ form_start(form, {'attr': {'class':'form-horizontal'}}) }} | ||
<div class="form-group"> | ||
{{ form_label(form.hTo) }} | ||
<div class="col-xs-6 col-sm-5"> | ||
{{ form_widget(form.hTo) }} | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
{{ form_label(form.subject) }} | ||
<div class="col-sm-10"> | ||
{{ form_widget(form.subject) }} | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-xs-12"> | ||
{{ form_widget(form.body) }} | ||
</div> | ||
</div> | ||
{{ form_widget(form.save) }} | ||
{{ form_end(form) }} | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<blockquote class="blockquote-reverse"> | ||
{{ point.origin }} | ||
<footer>{{ node_address }}</footer> | ||
</blockquote> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block javascripts %} | ||
{{ parent() }} | ||
{% endblock %} |
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,7 +1,24 @@ | ||
|
||
<div class="list-group hidden-xs hidden-sm"> | ||
<a href="{{ path("netmail") }}" class="list-group-item">{% if netmail_unread is defined %}<span class="badge">{{ netmail_unread }}</span>{% endif %}NETMAIL</a> | ||
{% for group in groups %} | ||
<a href="{{ path('fidonews_group',{'group_id':group.id}) }}" class="list-group-item"><span class="badge">{{ group.cnt }}</span>{{ group.name }}</a> | ||
{% endfor %} | ||
<div class="panel-group hidden-xs hidden-sm" role="tablist"> | ||
<div class="panel panel-default"> | ||
<div class="list-group"> | ||
<a href="{{ path("netmail") }}" class="list-group-item">{% if netmail_unread is defined %}<span class="badge">{{ netmail_unread }}</span>{% endif %}NETMAIL</a> | ||
{% for group in groups_visible %} | ||
<a href="{{ path('fidonews_group',{'group_id':group.id}) }}" class="list-group-item"><span class="badge">{{ group.cnt }}</span>{{ group.name }}</a> | ||
{% endfor %} | ||
</div> | ||
{% if groups_more is defined %} | ||
<div class="panel-collapse collapse" role="tabpanel" id="echoFullList" aria-labelledby="collapseListGroupHeading1" aria-expanded="true" style=""> | ||
<div class="list-group"> | ||
{% for group in groups_more %} | ||
<a href="{{ path('fidonews_group',{'group_id':group.id}) }}" class="list-group-item"><span class="badge">{{ group.cnt }}</span>{{ group.name }}</a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="panel-heading" role="tab" id="collapseListGroupHeading1"> | ||
<h4 class="panel-title"> | ||
<a href="#echoFullList" class="" id="echoListMoreButton" role="button" data-toggle="collapse" aria-expanded="true" aria-controls="echoFullList">Еще <span class="glyphicon glyphicon-chevron-down"></span></a> | ||
</h4> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> |
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
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
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,6 +1,7 @@ | ||
<div class="btn-group" role="group" aria-label="..."> | ||
{% if nav.prev %}<a href="{{ path('netmail_message',{'netmail_id':nav.prev}) }}" type="button" class="btn btn-primary btn-md">←</a>{% endif %} | ||
<a href="{{ path("netmail_post") }}" type="button" class="btn btn-primary btn-md"><span class="glyphicon glyphicon-plus"></span> New</a> | ||
<a href="{{ path("netmail_email") }}" type="button" class="btn btn-primary btn-md"><span class="glyphicon glyphicon-envelope"></span> Email</a> | ||
{% if message %}<a href="{{ path('netmail_reply',{'id':message.m_id}) }}" type="button" class="btn btn-primary btn-md"><span class="glyphicon glyphicon-share-alt"></span> Reply</a>{% endif %} | ||
{% if nav.next %}<a href="{{ path('netmail_message',{'netmail_id':nav.next}) }}" type="button" class="btn btn-primary btn-md">→</a>{% endif %} | ||
</div> |
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