Skip to content

Commit

Permalink
Dev: layout_survey_list extends layout_global
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 29, 2017
1 parent 7037b5d commit b56798c
Showing 1 changed file with 65 additions and 99 deletions.
164 changes: 65 additions & 99 deletions templates/default/views/layout_survey_list.twig
Expand Up @@ -17,102 +17,68 @@
#}

<!DOCTYPE html>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="no-js {{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} ">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>
{{ aSurveyInfo.sSiteName }}
</title>

<meta name="generator" content="LimeSurvey http://www.limesurvey.org" />
<link rel="shortcut icon" href="{{ aSurveyInfo.oTemplate.sTemplateurl }}favicon.ico" />
</head>

<body class="default lang-{{surveylanguage}} {{surveyformat}}">

{# Bootstrap Navigation Bar: the top menu #}
{{ include('./subviews/nav_bar.twig') }}

<!-- Outer Frame Container -->
<div class="outerframe container" id="outerframeContainer">

<!-- Main Row -->
<div id="main-row">

<!-- Main Col -->
<div class="col-centered" id="main-col">

<div class="row" id="surveys-list-container">

{# include the alert for no JavaScript #}
{{ include('./subviews/no_js_alert.twig') }}

<div class="jumbotron" id="surveys-list-jumbotron">
<p>
{% if not empty(aSurveyInfo.oTemplate.siteLogo) %}
{% set htmlOptions = {'class': 'img-responsive center-block',} %}
{{ image(aSurveyInfo.oTemplate.siteLogo, "LimeSurvey Survey Software", htmlOptions ) }}
{% endif %}
{{ aSurveyInfo.sSiteName }}
</p>
</div>

<div class="col-xs-12 survey-list-heading">
<div class='h3 '>
{{ "The following surveys are available:" | t }}
</div>
</div>
<div class="col-xs-12 survey-list">
<div class='surveys-list-container'>
<ul class='list-unstyled surveys-list'>

{% for key, oSurvey in aSurveyInfo.publicSurveys %}
<li class="btn-group btn-block">
<a
href="{{ oSurvey.sSurveyUrl }}"
title="{{ "Start survey" | t }}"
lang="{{ oSurvey.language }}"
class="surveytitle btn btn-primary {% if (oSurvey.publicstatistics == "Y") %} col-xs-10 col-md-11 {% else %} col-xs-12 {% endif %}" >
{{ oSurvey.localizedTitle }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-xs-12 survey-contact">
{{ sprintf( gT("Please contact %s ( %s ) for further assistance."), aSurveyInfo.sSiteAdminName, aSurveyInfo.sSiteAdminEmail ) }}
</div>

</div>

<div id="surveyListFooter" class="well">
<div class="container">
<p>
<a href="http://www.limesurvey.org" target="_blank">
{{ image("poweredby.png", "LimeSurvey Survey Software") }}
</a>
<br />
<a href="http://www.limesurvey.org" target="_blank">
The Online Survey Tool
</a>
- Free & Open Source
<br />
</p>
</div>
</div>


</div> <!-- main col -->
</div> <!-- main row -->
</div> <!-- outer frame container -->


</body>
</html>
<!-- end of startpage.twig -->
{# Call the global layout #}
{% extends "./layout_global.twig" %}

{# Replace the content block #}
{% block content %}
<div class="row" id="surveys-list-container">

{# include the alert for no JavaScript #}
{{ include('./subviews/no_js_alert.twig') }}

<div class="jumbotron" id="surveys-list-jumbotron">
<p>
{% if not empty(aSurveyInfo.oTemplate.siteLogo) %}
{% set htmlOptions = {'class': 'img-responsive center-block',} %}
{{ image(aSurveyInfo.oTemplate.siteLogo, "LimeSurvey Survey Software", htmlOptions ) }}
{% endif %}
{{ aSurveyInfo.sSiteName }}
</p>
</div>

<div class="col-xs-12 survey-list-heading">
<div class='h3 '>
{{ "The following surveys are available:" | t }}
</div>
</div>
<div class="col-xs-12 survey-list">
<div class='surveys-list-container'>
<ul class='list-unstyled surveys-list'>

{% for key, oSurvey in aSurveyInfo.publicSurveys %}
<li class="btn-group btn-block">
<a
href="{{ oSurvey.sSurveyUrl }}"
title="{{ "Start survey" | t }}"
lang="{{ oSurvey.language }}"
class="surveytitle btn btn-primary {% if (oSurvey.publicstatistics == "Y") %} col-xs-10 col-md-11 {% else %} col-xs-12 {% endif %}" >
{{ oSurvey.localizedTitle }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-xs-12 survey-contact">
{{ sprintf( gT("Please contact %s ( %s ) for further assistance."), aSurveyInfo.sSiteAdminName, aSurveyInfo.sSiteAdminEmail ) }}
</div>

</div>

<div id="surveyListFooter" class="well">
<div class="container">
<p>
<a href="http://www.limesurvey.org" target="_blank">
{{ image("poweredby.png", "LimeSurvey Survey Software") }}
</a>
<br />
<a href="http://www.limesurvey.org" target="_blank">
The Online Survey Tool
</a>
- Free & Open Source
<br />
</p>
</div>
</div>
{% endblock %}

0 comments on commit b56798c

Please sign in to comment.