{% extends "@StartPlatzStyleBundle/Bootstrap4/base.homepage.with-sections.html.twig" %}
{% set currentPath = app.request.get('_route') %}
{% set entity = {'seoDescription':startup.oneSentencePitch|striptags} %}
{% block metaData %}{% include "@StartPlatzStyleBundle/_metaData.html.twig" with {'seoDescription':entity.seoDescription} %}{% endblock %}
{% block additionalHead %}
{% include "@StartPlatzStyle/CSS/_sp-connect.version-2021-winter.html.twig" %}
{% endblock %}
{% block navigation %}
{% include "@StartPlatzStyleBundle/Navigation/_nav.homepage.bootstrap4.html.twig" %}
{% endblock %}
{% block title %}Startup {{ startup.name }}{% endblock %}
{% block content %}
{% set targetUrl = path('x_connect_team_show', {'id': team.id, 'slug': startup.slug}) %}
{% if app.user.email is not defined %}
{% set targetPath = targetUrl %}
{% set targetUrl = path('x_membership_required_modal', {'lang':lang, 'targetPath': targetPath}) %}
{% endif %}
{# header #}
{% if startup.imageLink is not null %}
<section class="headerImgPlaceholder">
<img class="banner-flex-width" src="{{ startup.imageLink }}" style="width:100%;"
alt=" ">
</section>
{% endif %}
{% if startup.imageLink is null %}
<section class="headerImgPlaceholder placeholder-addition">
<img class="placeholder-banner-flex-width connect"
src="https://res.cloudinary.com/startplatz/image/upload/v1683121186/banners/header_wide_gray.png"
alt=" ">
</section>
<div class="container-fluid placeholder-banner-text">
<div class="row justify-content-center">
<h2 class="text-black text p-0 m-0" style="font-size: 45px; font-weight: bold">
{{ startup.name }}
</h2>
</div>
</div>
{% endif %}
<section class="container-fluid m-0 p-0 mt-4">
<div class="ml-0 mt-3 mb-5 mb-md-1 pb-2 pb-md-0">
<div class="d-flex row mx-0 mx-md-2 justify-content-md-end justify-content-center">
<div>
<div>
<a class="btn btn-startplatz col-11 mb-2 mt-1" style="width:280px"
href="{{ targetUrl }}" {% if not app.user.email is defined %} data-remote="false" data-toggle="modal" data-target="#myLargeModal" {% endif %}>
view startup in sp-connect
</a>
</div>
<div>
<a class="btn btn-startplatz col-11 mb-2" style="width:280px"
{% if app.user.email is defined %} href="{{ path('x_team_connect_contact_form', {id: team.id, redirect: redirectUrl}) }}"{% else %} href="{{ targetUrl }}" data-remote="false" data-toggle="modal" data-target="#myLargeModal" {% endif %}>
Get in contact
</a>
</div>
{# administration by startup - only for owner and admins of that startup ------------------------------------ #}
{% if allowEdit == true %}
<div class="dropdown">
<button class="btn btn-startplatz dropdown-toggle col-11 mb-2"
type="button"
id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Edit options (Owner or Admin)
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item"
href="{{ path('x_post_edit', {'id':'new','tag':startup.slug, 'redirect': redirectUrl}) }}">
Create Post
</a>
{# Update Startup / team #}
{% if startup.slug %}
<a class="dropdown-item"
href="{{ path('x_startup_edit', {id: startup.id, 'slug':startup.slug, redirect: redirectUrl}) }}">
Update Startup
</a>
{% endif %}
</div>
</div>
{% endif %}
{# administration by STARTPLATZ admins -------------------------------- #}
{% if is_granted("ROLE_ADMIN") %}
<div class="dropdown">
<button class="btn btn-warning dropdown-toggle col-11 mb-2"
type="button"
id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Edit options (SP admin)
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item"
href="{{ path('x_post_edit', {'id':'new','tag':startup.slug, 'redirect': redirectUrl}) }}">
Create Post
</a>
{# Update Startup / team #}
{% if startup.slug %}
<a class="dropdown-item"
href="{{ path('x_startup_edit', {id: startup.id, 'slug':startup.slug, redirect: redirectUrl}) }}">
Update Startup
</a>
{% endif %}
{# Update team in allmeda #}
<a href="{{ path('allmeda_team_show', {'id':team.id, redirect: redirectUrl}) }}"
class="dropdown-item" role="button">
Update Team in Allmeda
</a>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class="connectCard row d-flex shadow m-0 p-0 px-md-5 pb-2 pr-0 justify-content-around">
<div class="row m-2 px-md-5 mx-md-auto justify-content-around team-section" style="flex:1">
{% include "@StartPlatzAlphaBundle/Team/_widget.team.about.html.twig" with {
'description' : startup.oneSentencePitch ? startup.oneSentencePitch : team.description,
} %}
</div>
</div>
<div class="row m-2 px-md-5 mx-md-auto justify-content-around team-section">
<div class="container-fluid mt-4 mb-0 mx-0 px-0">
<h2><span class="spGreen">MEET </span>our team</h2>
<div>
<a class="btn btn-startplatz aligncenter col-11 mb-2 mt-1 ml-2" style="width:280px"
href="{{ targetUrl }}" {% if not app.user.email is defined %} data-remote="false" data-toggle="modal" data-target="#myLargeModal" {% endif %}>
view in sp-connect
</a>
</div>
</div>
</div>
{# don't display team members on homepage
{% if team.members|length > 0 %}
<div class="row m-2 px-md-5 mx-md-auto justify-content-around team-section">
{% include "@StartPlatzAlphaBundle/Team/_widget.team.ourteam.html.twig" with {
'maxMembers' : 14,
'memberWidget' : '@StartPlatzAlphaBundle/Member/homepage.startup.member.widget.html.twig'
} %}
</div>
{% endif %}
#}
{% if feedItems or startup.twitter %}
<div class="row m-2 px-md-5 m-md-auto mx-xs-1 justify-content-between team-section">
{% include "@StartPlatzAlphaBundle/Team/_widget.team.feed.html.twig" with {
'twitter' : startup.twitter,
'name' : startup.name,
} %}
</div>
{% endif %}
</section>
{% endblock %}
{% block footer %}
{% include '@StartPlatzWebsiteBundle/Default/footerBootstrap40.html.twig' %}
{% endblock %}
{% block infiniteLoop %}
{% endblock %}
{% block javascripts %}{% endblock %}